Clean exit when no space left on device (#6339)

Fixes #6305
This commit is contained in:
Cecile Tonglet authored and GitHub committed 2020-07-09 14:58:29 +02:00
1 parent ef8572f10d
commit a4427f3635
16 files changed
+97 -43

No files matched your search

+2 -1
View File
@@ -342,8 +342,9 @@ impl<Block: BlockT> BlockchainCache<Block> for DbCacheSync<Block> {
EntryType::Genesis,
)?;
let tx_ops = tx.into_ops();
db.commit(dbtx);
db.commit(dbtx)?;
cache.commit(tx_ops)?;
Ok(())
}