Skip to content

Commit f57e666

Browse files
committed
Protect curDBTransaction in CEvoDB::CommitRootTransaction()
1 parent 5c44ccd commit f57e666

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/evo/evodb.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ void CEvoDB::RollbackCurTransaction()
5353

5454
bool CEvoDB::CommitRootTransaction()
5555
{
56+
LOCK(cs);
5657
assert(curDBTransaction.IsClean());
5758
rootDBTransaction.Commit();
5859
bool ret = db.WriteBatch(rootBatch);

0 commit comments

Comments
 (0)