File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
execution_chain/db/core_db/backend Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,13 @@ proc commit*(
7272 # Write to disk if everyone that opened a session also committed it
7373 ? rdb.db.write (session.batch)
7474
75- # This flush forces memtables to be written to disk, which is necessary given
76- # the use of vector memtables which have very bad lookup performance.
77- rdb.db.flush (session.families.mapIt (it.handle ())).isOkOr:
78- # Not sure what to do here - the commit above worked so it would be strange
79- # to have an error here
80- warn " Could not flush database" , error
75+ if session.families.len > 0 :
76+ # This flush forces memtables to be written to disk, which is necessary given
77+ # the use of vector memtables which have very bad lookup performance.
78+ rdb.db.flush (session.families.mapIt (it.handle ())).isOkOr:
79+ # Not sure what to do here - the commit above worked so it would be strange
80+ # to have an error here
81+ warn " Could not flush database" , error
8182
8283 ok ()
8384
You can’t perform that action at this time.
0 commit comments