aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-12-18 10:07:32 -0500
committerGitHub <[email protected]>2023-12-18 16:07:32 +0100
commitcc8b464751e243d80d54588bd2cec79d8009dc54 (patch)
treed6c5a6cade5ca239190cb767c4b5f7a993efdc8f /src/zenstore/include
parentMake sure we initialize the pattern of FileSink before it is added as a usabl... (diff)
downloadzen-cc8b464751e243d80d54588bd2cec79d8009dc54.tar.xz
zen-cc8b464751e243d80d54588bd2cec79d8009dc54.zip
Fix crash bug when trying to inspect non-open block file in GC (#614)
Diffstat (limited to 'src/zenstore/include')
-rw-r--r--src/zenstore/include/zenstore/blockstore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zenstore/include/zenstore/blockstore.h b/src/zenstore/include/zenstore/blockstore.h
index 786780b5e..bb36cb3cd 100644
--- a/src/zenstore/include/zenstore/blockstore.h
+++ b/src/zenstore/include/zenstore/blockstore.h
@@ -101,6 +101,7 @@ struct BlockStoreFile : public RefCounted
void Flush();
BasicFile& GetBasicFile();
void StreamByteRange(uint64_t FileOffset, uint64_t Size, std::function<void(const void* Data, uint64_t Size)>&& ChunkFun);
+ bool IsOpen() const;
private:
const std::filesystem::path m_Path;