From: Pritha Srivastava Date: Tue, 23 Jul 2019 05:13:36 +0000 (+0530) Subject: Added code for upgrade scenario. X-Git-Tag: v15.1.0~1185^2~9 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7933952cdf810e7f6ad9fb466ce77156594a3bba;p=ceph-ci.git Added code for upgrade scenario. Signed-off-by: Pritha Srivastava --- diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index f8100a36ac1..712223dcd82 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -3273,8 +3273,6 @@ static int gc_defer_entry(cls_method_context_t hctx, const string& tag, uint32_t { cls_rgw_gc_obj_info info; int ret = gc_omap_get(hctx, GC_OBJ_NAME_INDEX, tag, &info); - if (ret == -ENOENT) - return 0; if (ret < 0) return ret; return gc_update_entry(hctx, expiration_secs, info); diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 76a4d62fe63..82c3648e268 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -1432,7 +1432,7 @@ OPTION(rgw_usage_log_tick_interval, OPT_INT) // flush pending log data every X s OPTION(rgw_init_timeout, OPT_INT) // time in seconds OPTION(rgw_mime_types_file, OPT_STR) OPTION(rgw_gc_max_objs, OPT_INT) -OPTION(rgw_gc_obj_min_wait, OPT_INT) // wait time before object may be handled by gc +OPTION(rgw_gc_obj_min_wait, OPT_INT) // wait time before object may be handled by gc, recommended lower limit is 30 mins OPTION(rgw_gc_processor_max_time, OPT_INT) // total run time for a single gc processor work OPTION(rgw_gc_processor_period, OPT_INT) // gc processor cycle time OPTION(rgw_gc_max_concurrent_io, OPT_INT) // gc processor cycle time @@ -1565,3 +1565,5 @@ OPTION(rgw_sts_client_id, OPT_STR) // Client Id OPTION(rgw_sts_client_secret, OPT_STR) // Client Secret OPTION(debug_allow_any_pool_priority, OPT_BOOL) OPTION(rgw_gc_max_urgent_data_size, OPT_U64) // GC urgent data size +OPTION(rgw_gc_max_queue_size, OPT_U64) // GC max queue size +OPTION(rgw_gc_num_urgent_data_entries, OPT_U64) // GC number of urgent data entries diff --git a/src/common/options.cc b/src/common/options.cc index 988050e87ba..e505aed4edc 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3625,11 +3625,11 @@ std::vector