Params::put: fixed the wrong call to Params::remove instead of global ::remove (#21974)

* fix bug

* use unlink
old-commit-hash: 6be8520a84f7d43d1df5bc529a75be40be5f805b
This commit is contained in:
Dean Lee
2021-08-31 07:31:27 +08:00
committed by GitHub
parent 33c50f5ea6
commit 467348f803

View File

@@ -261,7 +261,7 @@ int Params::put(const char* key, const char* value, size_t value_size) {
} while (false);
close(tmp_fd);
remove(tmp_path.c_str());
::unlink(tmp_path.c_str());
return result;
}