diff options
| author | Dan Engelbrecht <[email protected]> | 2023-11-08 15:51:40 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-08 15:51:40 +0100 |
| commit | 48d14dee059c97ead3897acf8bea9a80d6761a6e (patch) | |
| tree | 2e82ad1b0dbec7464f7653a0f9613b3c6120c3c4 /src/zenstore/blockstore.cpp | |
| parent | disk layer gc and error/warnings cleanup (#515) (diff) | |
| download | zen-48d14dee059c97ead3897acf8bea9a80d6761a6e.tar.xz zen-48d14dee059c97ead3897acf8bea9a80d6761a6e.zip | |
don't try to close NewBlockFile if it hasn't been created (#523)
* Don't try to close NewBlockFile if it hasn't been created
Diffstat (limited to 'src/zenstore/blockstore.cpp')
| -rw-r--r-- | src/zenstore/blockstore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenstore/blockstore.cpp b/src/zenstore/blockstore.cpp index 30a659784..063d38707 100644 --- a/src/zenstore/blockstore.cpp +++ b/src/zenstore/blockstore.cpp @@ -1096,7 +1096,7 @@ BlockStore::CompactBlocks(const BlockStoreCompactState& CompactState, ZEN_ASSERT(m_ChunkBlocks[NextBlockIndex] == NewBlockFile); m_ChunkBlocks.erase(NextBlockIndex); } - NewBlockFile->MarkAsDeleteOnClose(); + NewBlockFile = nullptr; return; } |