diff --git a/include/dsn/dist/replication/replica_envs.h b/include/dsn/dist/replication/replica_envs.h index ec5672b044..5be5c26740 100644 --- a/include/dsn/dist/replication/replica_envs.h +++ b/include/dsn/dist/replication/replica_envs.h @@ -44,7 +44,7 @@ class replica_envs static const std::string ROCKSDB_USAGE_SCENARIO; static const std::string ROCKSDB_CHECKPOINT_RESERVE_MIN_COUNT; static const std::string ROCKSDB_CHECKPOINT_RESERVE_TIME_SECONDS; - static const std::string ROCKSDB_ITERATION_THRESHOLD; + static const std::string ROCKSDB_ITERATION_THRESHOLD_TIME_MS; static const std::string MANUAL_COMPACT_DISABLED; static const std::string MANUAL_COMPACT_MAX_CONCURRENT_RUNNING_COUNT; static const std::string MANUAL_COMPACT_ONCE_TRIGGER_TIME; diff --git a/src/dist/replication/common/replication_common.cpp b/src/dist/replication/common/replication_common.cpp index 67a7395e6d..a7d64eec2a 100644 --- a/src/dist/replication/common/replication_common.cpp +++ b/src/dist/replication/common/replication_common.cpp @@ -618,7 +618,8 @@ const std::string replica_envs::ROCKSDB_CHECKPOINT_RESERVE_MIN_COUNT("rocksdb.checkpoint.reserve_min_count"); const std::string replica_envs::ROCKSDB_CHECKPOINT_RESERVE_TIME_SECONDS( "rocksdb.checkpoint.reserve_time_seconds"); -const std::string replica_envs::ROCKSDB_ITERATION_THRESHOLD("replica.rocksdb_iteration_threshold"); +const std::string replica_envs::ROCKSDB_ITERATION_THRESHOLD_TIME_MS( + "replica.rocksdb_iteration_threshold_time_ms"); const std::string replica_envs::BUSINESS_INFO("business.info"); namespace cold_backup { diff --git a/src/dist/replication/meta_server/app_env_validator.cpp b/src/dist/replication/meta_server/app_env_validator.cpp index f612f0c878..7bd4a8a003 100644 --- a/src/dist/replication/meta_server/app_env_validator.cpp +++ b/src/dist/replication/meta_server/app_env_validator.cpp @@ -151,7 +151,7 @@ void app_env_validator::register_all_validators() std::bind(&check_write_throttling, std::placeholders::_1, std::placeholders::_2)}, {replica_envs::WRITE_SIZE_THROTTLING, std::bind(&check_write_throttling, std::placeholders::_1, std::placeholders::_2)}, - {replica_envs::ROCKSDB_ITERATION_THRESHOLD, + {replica_envs::ROCKSDB_ITERATION_THRESHOLD_TIME_MS, std::bind(&check_rocksdb_iteration, std::placeholders::_1, std::placeholders::_2)}, // TODO(zhaoliwei): not implemented {replica_envs::BUSINESS_INFO, nullptr},