Enum FlushReason
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
Why RocksDb flushed a memtable, mapped from rocksdb::FlushReason in
listener.h.
public enum FlushReason
Fields
AutoCompaction = 9An automatic compaction required a flush first.
CatchUpAfterErrorRecovery = 14Catching up after error recovery completed.
DeleteFiles = 8A file deletion required a flush first.
ErrorRecovery = 11Recovering from a background error.
ErrorRecoveryRetryFlush = 12A retried flush during error recovery.
ExternalFileIngestion = 3External SST file ingestion required a flush first.
GetLiveFiles = 1A call that needed a consistent set of files on disk.
ManualCompaction = 4A manual compaction required a flush first.
ManualFlush = 10An explicit Flush(FlushOptions?).
MemtableMaxRangeDeletions = 15The memtable accumulated too many range deletions.
Others = 0No specific reason recorded.
ShutDown = 2The database is closing.
Test = 7Internal to RocksDb's own tests.
WalFull = 13The write-ahead log reached its size limit.
WriteBufferFull = 6The memtable reached WriteBufferSize.
WriteBufferManager = 5The write buffer manager asked for memory back.
Remarks
The native values are explicit and must match exactly. A shifted value silently mislabels every flush an application observes.