Class WalFile
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
Describes one write-ahead log file.
Copied from rocksdb_wal_file_t.
public sealed record WalFile : IEquatable<WalFile>
- Inheritance
-
WalFile
- Implements
- Inherited Members
Remarks
This is a snapshot rather than a handle, deliberately. RocksDb's ownership of WAL file objects is asymmetric: entries from GetSortedWalFiles() are borrowed from a vector and must not be freed individually, while GetCurrentWalFile() returns one the caller owns. Copying the values out means callers never have to know which they hold.
Properties
LogNumber
The log number, which increases as WAL files are rotated.
public ulong LogNumber { get; init; }
Property Value
PathName
Path of the file, relative to the WAL directory.
public string? PathName { get; init; }
Property Value
SizeFileBytes
Size of the file in bytes.
public ulong SizeFileBytes { get; init; }
Property Value
StartSequence
Sequence number of the first record in the file.
public ulong StartSequence { get; init; }
Property Value
Type
Whether the file is live or archived.
public WalFileType Type { get; init; }