Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::WalManagerOptions Struct Reference

Configuration options for WalManager::open(). More...

#include <wal.hpp>

Public Attributes

size_t max_segment_bytes = 64 * 1024 * 1024
 Max bytes per segment before rolling (64 MB)
 
size_t max_records = 1'000'000
 Max records per segment before rolling.
 
bool sync_on_append = false
 fsync after every record append
 
bool sync_on_roll = true
 fsync when rolling to a new segment
 
bool strict_replay = true
 Fail closed on corrupt/unreadable segments during replay.
 
std::string file_prefix = "wal"
 Segment filename prefix.
 
std::string file_ext = ".wal"
 Segment filename extension.
 
WalLifecycleMode lifecycle_mode = WalLifecycleMode::Development
 Lifecycle safety mode.
 
bool reset_on_open = false
 Delete all existing segments on open (denied in Production)
 
bool require_checkpoint_before_prune = false
 Require checkpoint commit before segment removal.
 
std::string checkpoint_manifest_path
 Path for atomic checkpoint manifest file.
 

Detailed Description

Configuration options for WalManager::open().

Defined at namespace scope (not nested in WalManager) to avoid an Apple Clang bug with default member initializers in nested structs.

See also
WalManager

Definition at line 777 of file wal.hpp.

Member Data Documentation

◆ checkpoint_manifest_path

std::string signet::forge::WalManagerOptions::checkpoint_manifest_path

Path for atomic checkpoint manifest file.

Definition at line 790 of file wal.hpp.

◆ file_ext

std::string signet::forge::WalManagerOptions::file_ext = ".wal"

Segment filename extension.

Definition at line 784 of file wal.hpp.

◆ file_prefix

std::string signet::forge::WalManagerOptions::file_prefix = "wal"

Segment filename prefix.

Definition at line 783 of file wal.hpp.

◆ lifecycle_mode

WalLifecycleMode signet::forge::WalManagerOptions::lifecycle_mode = WalLifecycleMode::Development

Lifecycle safety mode.

Definition at line 787 of file wal.hpp.

◆ max_records

size_t signet::forge::WalManagerOptions::max_records = 1'000'000

Max records per segment before rolling.

Definition at line 779 of file wal.hpp.

◆ max_segment_bytes

size_t signet::forge::WalManagerOptions::max_segment_bytes = 64 * 1024 * 1024

Max bytes per segment before rolling (64 MB)

Definition at line 778 of file wal.hpp.

◆ require_checkpoint_before_prune

bool signet::forge::WalManagerOptions::require_checkpoint_before_prune = false

Require checkpoint commit before segment removal.

Definition at line 789 of file wal.hpp.

◆ reset_on_open

bool signet::forge::WalManagerOptions::reset_on_open = false

Delete all existing segments on open (denied in Production)

Definition at line 788 of file wal.hpp.

◆ strict_replay

bool signet::forge::WalManagerOptions::strict_replay = true

Fail closed on corrupt/unreadable segments during replay.

Definition at line 782 of file wal.hpp.

◆ sync_on_append

bool signet::forge::WalManagerOptions::sync_on_append = false

fsync after every record append

Definition at line 780 of file wal.hpp.

◆ sync_on_roll

bool signet::forge::WalManagerOptions::sync_on_roll = true

fsync when rolling to a new segment

Definition at line 781 of file wal.hpp.


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