Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::DatabaseHeader Struct Reference

Public Member Functions

void Write (WriteStream &ser)
 

Static Public Member Functions

static DatabaseHeader Read (const MainHeader &header, ReadStream &source)
 

Public Attributes

uint64_t iteration = 0
 The iteration count, increases by 1 every time the storage is checkpointed.
 
idx_t meta_block = 0
 A pointer to the initial meta block.
 
idx_t free_list = 0
 A pointer to the block containing the free list.
 
uint64_t block_count = 0
 
idx_t block_alloc_size = 0
 The allocation size of blocks in this database file. Defaults to default_block_alloc_size (DBConfig).
 
idx_t vector_size = 0
 The vector size of the database file.
 
idx_t serialization_compatibility = 0
 The serialization compatibility version.
 

Detailed Description

The DatabaseHeader contains information about the current state of the database. Every storage file has two DatabaseHeaders. On startup, the DatabaseHeader with the highest iteration count is used as the active header. When a checkpoint is performed, the active DatabaseHeader is switched by increasing the iteration count of the DatabaseHeader.

Member Data Documentation

◆ block_count

uint64_t duckdb::DatabaseHeader::block_count = 0

The number of blocks that is in the file as of this database header. If the file is larger than BLOCK_SIZE * block_count any blocks appearing AFTER block_count are implicitly part of the free_list.


The documentation for this struct was generated from the following file: