diff --git a/libraries/chain_kv/include/b1/session/session.hpp b/libraries/chain_kv/include/b1/session/session.hpp index 3713cb95a4a..28daa30d179 100644 --- a/libraries/chain_kv/include/b1/session/session.hpp +++ b/libraries/chain_kv/include/b1/session/session.hpp @@ -502,12 +502,13 @@ void session::commit() { updates.emplace(p.first, p.second.value); } } + if (deletes.size() > 0) { - ds.erase(deletes); + ds.erase(deletes); } if (updates.size() > 0) { - ds.write(updates); + ds.write(updates); } clear();