]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove rgw_data_log_obj_prefix 59567/head
authorSeena Fallah <seenafallah@gmail.com>
Mon, 2 Sep 2024 17:01:09 +0000 (19:01 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Mon, 23 Sep 2024 17:16:02 +0000 (19:16 +0200)
The evaluation based on rgw_data_log_obj_prefix had a logical error
not considering the value and always were returning "data_log".
As the config was having the dev level and apparantly it was useless
and fixing the logic could break the existing clusters (if they don't
adopt before upgrade), it was decided to remove the config.

Fixes: https://tracker.ceph.com/issues/67861
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
doc/radosgw/config-ref.rst
src/common/options/rgw.yaml.in
src/rgw/driver/rados/rgw_datalog.h

index 070e00967ae1103e2b926c5398689d27bfa4def1..12dbef4c132dc483bcc6f1be83ddd2bef74c92d4 100644 (file)
@@ -149,7 +149,6 @@ file under each ``[client.radosgw.{instance-name}]`` instance.
 .. confval:: rgw_run_sync_thread
 .. confval:: rgw_data_log_window
 .. confval:: rgw_data_log_changes_size
-.. confval:: rgw_data_log_obj_prefix
 .. confval:: rgw_data_log_num_shards
 .. confval:: rgw_md_log_max_shards
 .. confval:: rgw_data_sync_poll_interval
index 66617d040bed484fec2fcc203da23c0f4a948c8c..f383c8fce8cb454c0e8f9b6645aef622ff095a6a 100644 (file)
@@ -2066,14 +2066,6 @@ options:
   services:
   - rgw
   with_legacy: true
-- name: rgw_data_log_obj_prefix
-  type: str
-  level: dev
-  default: data_log
-  fmt_desc: The object name prefix for the data log.
-  services:
-  - rgw
-  with_legacy: true
 - name: rgw_data_sync_poll_interval
   type: int
   level: dev
index 58042df2c62e9261013c9d1469711c22c96ce318..6cfaee9dc82e014c477863fa9fea4f9090e1fe22 100644 (file)
@@ -241,10 +241,7 @@ class RGWDataChangesLog {
   std::unique_ptr<DataLogBackends> bes;
 
   const int num_shards;
-  std::string get_prefix() {
-    auto prefix = cct->_conf->rgw_data_log_obj_prefix;
-    return prefix.empty() ? prefix : "data_log";
-  }
+  std::string get_prefix() { return "data_log"; }
   std::string metadata_log_oid() {
     return get_prefix() + "generations_metadata";
   }