Fix lmdb txn commit code

pull/9290/head
Lee *!* Clagett 1 month ago
parent c8214782fb
commit ee930140cc

@ -123,8 +123,11 @@ namespace lmdb
const auto wrote = f(*(*txn));
if (wrote)
{
MONERO_CHECK(commit(std::move(*txn)));
return wrote;
const auto committed = commit(std::move(*txn));
if (committed)
return wrote;
if (committed != lmdb::error(MDB_MAP_FULL))
return committed.error();
}
if (wrote != lmdb::error(MDB_MAP_FULL))
return wrote;

Loading…
Cancel
Save