OPTION(rgw_period_push_interval, OPT_DOUBLE, 2) // seconds to wait before retrying "period push"
OPTION(rgw_period_push_interval_max, OPT_DOUBLE, 30) // maximum interval after exponential backoff
+OPTION(rgw_swift_versioning_enabled, OPT_BOOL, false) // whether swift object versioning feature is enabled
+
OPTION(mutex_perf_counter, OPT_BOOL, false) // enable/disable mutex perf counter
OPTION(throttler_perf_counter, OPT_BOOL, true) // enable/disable throttler perf counter
location_constraint = store->get_zonegroup().api_name;
placement_rule = s->info.env->get("HTTP_X_STORAGE_POLICY", "");
- swift_ver_location = s->info.env->get("HTTP_X_VERSIONS_LOCATION", "");
+ if (s->cct->_conf->rgw_swift_versioning_enabled) {
+ swift_ver_location = s->info.env->get("HTTP_X_VERSIONS_LOCATION", "");
+ }
return 0;
}
rmattr_names);
placement_rule = s->info.env->get("HTTP_X_STORAGE_POLICY", "");
- swift_ver_location = s->info.env->get("HTTP_X_VERSIONS_LOCATION", "");
+ if (s->cct->_conf->rgw_swift_versioning_enabled) {
+ swift_ver_location = s->info.env->get("HTTP_X_VERSIONS_LOCATION", "");
+ }
return 0;
}