Skip to content

Commit

Permalink
Update definition for GetCompactionReasonString
Browse files Browse the repository at this point in the history
Summary:
`GetCompactionReasonString()` will be exposed in
RocksDB 8.7, which includes PR facebook/rocksdb#11778 that exposes it. So update its definition here to be based on RocksDB version.

Differential Revision: D49755853

fbshipit-source-id: 1ff11f6708768b0039f88835e44272f525798ba2
  • Loading branch information
cbi42 authored and facebook-github-bot committed Sep 28, 2023
1 parent 62c0c1a commit 3960962
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/rocksdb/rdb_i_s.cc
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,7 @@ static int rdb_i_s_compact_stats_fill_table(
DBUG_RETURN(ret);
}

#if ROCKSDB_MAJOR < 8 || (ROCKSDB_MAJOR == 8 && ROCKSDB_MINOR < 7)
namespace {

using rocksdb::CompactionReason;
Expand Down Expand Up @@ -982,6 +983,7 @@ const char *GetCompactionReasonString(CompactionReason compaction_reason) {
}

} // anonymous namespace
#endif

/*
Support for INFORMATION_SCHEMA.ROCKSDB_ACTIVE_COMPACTION_STATS dynamic table
Expand Down

0 comments on commit 3960962

Please sign in to comment.