mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-27 08:52:05 +08:00
Params::put: fixed the wrong call to Params::remove instead of global ::remove (#21974)
* fix bug * use unlink
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user