diff --git a/include/dsn/dist/replication/replica_envs.h b/include/dsn/dist/replication/replica_envs.h index f21a3d8d83..d25f731354 100644 --- a/include/dsn/dist/replication/replica_envs.h +++ b/include/dsn/dist/replication/replica_envs.h @@ -57,6 +57,7 @@ class replica_envs static const std::string REPLICA_ACCESS_CONTROLLER_ALLOWED_USERS; static const std::string READ_QPS_THROTTLING; static const std::string SPLIT_VALIDATE_PARTITION_HASH; + static const std::string USER_SPECIFIED_COMPACTION; }; } // namespace replication diff --git a/src/common/replication_common.cpp b/src/common/replication_common.cpp index 685995f624..928f3afe11 100644 --- a/src/common/replication_common.cpp +++ b/src/common/replication_common.cpp @@ -648,6 +648,7 @@ const std::string replica_envs::REPLICA_ACCESS_CONTROLLER_ALLOWED_USERS( const std::string replica_envs::READ_QPS_THROTTLING("replica.read_throttling"); const std::string replica_envs::SPLIT_VALIDATE_PARTITION_HASH("replica.split.validate_partition_hash"); +const std::string replica_envs::USER_SPECIFIED_COMPACTION("user_specified_compaction"); const std::string bulk_load_constant::BULK_LOAD_INFO("bulk_load_info"); const int32_t bulk_load_constant::BULK_LOAD_REQUEST_INTERVAL = 10; diff --git a/src/meta/app_env_validator.cpp b/src/meta/app_env_validator.cpp index a4cf445233..0181cc737e 100644 --- a/src/meta/app_env_validator.cpp +++ b/src/meta/app_env_validator.cpp @@ -173,7 +173,8 @@ void app_env_validator::register_all_validators() {replica_envs::READ_QPS_THROTTLING, std::bind(&check_throttling, std::placeholders::_1, std::placeholders::_2)}, {replica_envs::SPLIT_VALIDATE_PARTITION_HASH, - std::bind(&check_split_validation, std::placeholders::_1, std::placeholders::_2)}}; + std::bind(&check_split_validation, std::placeholders::_1, std::placeholders::_2)}, + {replica_envs::USER_SPECIFIED_COMPACTION, nullptr}}; } } // namespace replication