Table of Contents

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 = 9

An automatic compaction required a flush first.

CatchUpAfterErrorRecovery = 14

Catching up after error recovery completed.

DeleteFiles = 8

A file deletion required a flush first.

ErrorRecovery = 11

Recovering from a background error.

ErrorRecoveryRetryFlush = 12

A retried flush during error recovery.

ExternalFileIngestion = 3

External SST file ingestion required a flush first.

GetLiveFiles = 1

A call that needed a consistent set of files on disk.

ManualCompaction = 4

A manual compaction required a flush first.

ManualFlush = 10

An explicit Flush(FlushOptions?).

MemtableMaxRangeDeletions = 15

The memtable accumulated too many range deletions.

Others = 0

No specific reason recorded.

ShutDown = 2

The database is closing.

Test = 7

Internal to RocksDb's own tests.

WalFull = 13

The write-ahead log reached its size limit.

WriteBufferFull = 6

The memtable reached WriteBufferSize.

WriteBufferManager = 5

The 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.