@@ -301,6 +301,8 @@ static const std::string aggregated_table_properties =
301
301
static const std::string aggregated_table_properties_at_level =
302
302
aggregated_table_properties + " -at-level" ;
303
303
static const std::string num_running_compactions = " num-running-compactions" ;
304
+ static const std::string num_running_compaction_iterators =
305
+ " num-running-compaction-iterators" ;
304
306
static const std::string num_running_flushes = " num-running-flushes" ;
305
307
static const std::string actual_delayed_write_rate =
306
308
" actual-delayed-write-rate" ;
@@ -351,6 +353,8 @@ const std::string DB::Properties::kCompactionPending =
351
353
rocksdb_prefix + compaction_pending;
352
354
const std::string DB::Properties::kNumRunningCompactions =
353
355
rocksdb_prefix + num_running_compactions;
356
+ const std::string DB::Properties::kNumRunningCompactionIterators =
357
+ rocksdb_prefix + num_running_compaction_iterators;
354
358
const std::string DB::Properties::kNumRunningFlushes =
355
359
rocksdb_prefix + num_running_flushes;
356
360
const std::string DB::Properties::kBackgroundErrors =
@@ -580,6 +584,9 @@ const UnorderedMap<std::string, DBPropertyInfo>
580
584
{DB::Properties::kNumRunningCompactions ,
581
585
{false , nullptr , &InternalStats::HandleNumRunningCompactions, nullptr ,
582
586
nullptr }},
587
+ {DB::Properties::kNumRunningCompactionIterators ,
588
+ {false , nullptr , &InternalStats::HandleNumRunningCompactionIterators,
589
+ nullptr , nullptr }},
583
590
{DB::Properties::kActualDelayedWriteRate ,
584
591
{false , nullptr , &InternalStats::HandleActualDelayedWriteRate, nullptr ,
585
592
nullptr }},
@@ -1265,6 +1272,13 @@ bool InternalStats::HandleNumRunningCompactions(uint64_t* value, DBImpl* db,
1265
1272
return true ;
1266
1273
}
1267
1274
1275
+ bool InternalStats::HandleNumRunningCompactionIterators (uint64_t * value,
1276
+ DBImpl* db,
1277
+ Version* /* version*/ ) {
1278
+ *value = db->num_running_compaction_iterators_ ;
1279
+ return true ;
1280
+ }
1281
+
1268
1282
bool InternalStats::HandleBackgroundErrors (uint64_t * value, DBImpl* /* db*/ ,
1269
1283
Version* /* version*/ ) {
1270
1284
// Accumulated number of errors in background flushes or compactions.
0 commit comments