mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 16:35:53 +00:00
Add some asserts
This commit is contained in:
@@ -112,9 +112,14 @@ public:
|
||||
|
||||
rc = mdb_put(txn, m_dbi, &key, &data, 0);
|
||||
if (rc != 0)
|
||||
{
|
||||
assert(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
assert(false);
|
||||
|
||||
if (rc == 0)
|
||||
rc = mdb_txn_commit(txn);
|
||||
@@ -147,6 +152,8 @@ public:
|
||||
else
|
||||
assert(rc == MDB_NOTFOUND);
|
||||
}
|
||||
else
|
||||
assert(false);
|
||||
|
||||
mdb_txn_abort(txn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user