mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +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:
parent
c5f1f73fca
commit
72bc655ece
@ -1248,7 +1248,7 @@ bool env::is_pristine() const {
|
||||
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
|
||||
env &env::copy(const ::std::filesystem::path &destination, bool compactify,
|
||||
|
Loading…
x
Reference in New Issue
Block a user