mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-01-24 17:16:06 +00:00
mdbx++: исправление инверсии bool-результата env::remove()
(backport).
This commit is contained in:
parent
f40b2fc164
commit
41ebd6dcf3
@ -1346,7 +1346,7 @@ __cold path env::get_path() const {
|
||||
}
|
||||
|
||||
__cold bool env::remove(const char *pathname, const remove_mode mode) {
|
||||
return error::boolean_or_throw(
|
||||
return !error::boolean_or_throw(
|
||||
::mdbx_env_delete(pathname, MDBX_env_delete_mode_t(mode)));
|
||||
}
|
||||
|
||||
@ -1356,7 +1356,7 @@ __cold bool env::remove(const ::std::string &pathname, const remove_mode mode) {
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
__cold bool env::remove(const wchar_t *pathname, const remove_mode mode) {
|
||||
return error::boolean_or_throw(
|
||||
return !error::boolean_or_throw(
|
||||
::mdbx_env_deleteW(pathname, MDBX_env_delete_mode_t(mode)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user