MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / StringOverflowFileHeader

Class StringOverflowFileHeader

src/include/storage/overflow_file.h:27–35  ·  view source on GitHub ↗

Stores the current state of the overflow file The cursors in use are stored here so that we can write new pages directly to the overflow file, and in the case of an interruption and rollback the header will still record the correct place in the file to allocate new pages The first page managed by each handle is also stored for cases where we wish to iterate through all the managed pages (e.g. whe

Source from the content-addressed store, hash-verified

25// The first page managed by each handle is also stored for cases where we wish to iterate through
26// all the managed pages (e.g. when reclaiming pages)
27struct StringOverflowFileHeader {
28 struct Entry {
29 common::page_idx_t startPageIdx{common::INVALID_PAGE_IDX};
30 PageCursor cursor;
31 } entries[NUM_HASH_INDEXES];
32
33 // pages starts at one to reserve space for this header
34 StringOverflowFileHeader() : entries{} {}
35};
36static_assert(std::has_unique_object_representations_v<StringOverflowFileHeader>);
37
38class OverflowFileHandle {

Callers 1

OverflowFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected