mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-12 03:02:20 +08:00
mdbx++: fix env::is_empty()
to check leaf-pages instead of branch ones.
Seems like an auto-completion mistake. Thanks to https://igor@t.me/libmdbx for reporing.
This commit is contained in:
@@ -1248,7 +1248,7 @@ bool env::is_pristine() const {
|
|||||||
get_info().mi_recent_txnid == INITIAL_TXNID;
|
get_info().mi_recent_txnid == INITIAL_TXNID;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool env::is_empty() const { return get_stat().ms_branch_pages == 0; }
|
bool env::is_empty() const { return get_stat().ms_leaf_pages == 0; }
|
||||||
|
|
||||||
#ifdef MDBX_STD_FILESYSTEM_PATH
|
#ifdef MDBX_STD_FILESYSTEM_PATH
|
||||||
env &env::copy(const ::std::filesystem::path &destination, bool compactify,
|
env &env::copy(const ::std::filesystem::path &destination, bool compactify,
|
||||||
|
Reference in New Issue
Block a user