diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-06-21 11:53:49 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-06-21 11:53:49 -0700 |
commit | 241ad07394f40eb39646e270a9f534a4bb031666 (patch) | |
tree | 047d6c25477c0db35209bacbbd937ccbc102a871 | |
parent | 469900e62b80d46f602bf2ebbe7b1778a381ca87 (diff) | |
download | ceph-241ad07394f40eb39646e270a9f534a4bb031666.tar.gz |
rgw: make replica log object name configurable
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/common/config_opts.h | 1 | ||||
-rw-r--r-- | src/rgw/rgw_replica_log.cc | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 66582c0407e..91f8167a407 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -609,6 +609,7 @@ OPTION(rgw_data_log_window, OPT_INT, 30) // data log entries window (in seconds) OPTION(rgw_data_log_changes_size, OPT_INT, 1000) // number of in-memory entries to hold for data changes log OPTION(rgw_data_log_num_shards, OPT_INT, 128) // number of objects to keep data changes log on OPTION(rgw_data_log_obj_prefix, OPT_STR, "data_log") // +OPTION(rgw_replica_log_obj_prefix, OPT_STR, "replica_log") // OPTION(mutex_perf_counter, OPT_BOOL, false) // enable/disable mutex perf counter diff --git a/src/rgw/rgw_replica_log.cc b/src/rgw/rgw_replica_log.cc index 2c6659643c8..6d12b1e9ea1 100644 --- a/src/rgw/rgw_replica_log.cc +++ b/src/rgw/rgw_replica_log.cc @@ -110,5 +110,6 @@ RGWReplicaBucketLogger::RGWReplicaBucketLogger(RGWRados *_store) : RGWReplicaLogger(_store) { store->get_log_pool_name(pool); - prefix = "replica_log."; + prefix = _store->ctx()->_conf->rgw_replica_log_obj_prefix; + prefix.append("."); } |