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:
Леонид Юрьев (Leonid Yuriev) 2022-02-15 18:11:31 +03:00
parent c5f1f73fca
commit 72bc655ece

View File

@ -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,