diff --git a/include/rocksdb/listener.h b/include/rocksdb/listener.h index 1e92e6bd1..3b08ccd87 100644 --- a/include/rocksdb/listener.h +++ b/include/rocksdb/listener.h @@ -161,6 +161,8 @@ ROCKSDB_ENUM_CLASS(CompactionReason, int, kNumOfReasons ); +const char* GetCompactionReasonString(CompactionReason compaction_reason); + ROCKSDB_ENUM_CLASS(FlushReason, int, kOthers = 0x00, kGetLiveFiles = 0x01, @@ -180,6 +182,8 @@ ROCKSDB_ENUM_CLASS(FlushReason, int, kWalFull = 0xd ); +const char* GetFlushReasonString(FlushReason flush_reason); + // TODO: In the future, BackgroundErrorReason will only be used to indicate // why the BG Error is happening (e.g., flush, compaction). We may introduce // other data structure to indicate other essential information such as