From 22960192b00b8ab0ebe5c9830bc30019019643e3 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sat, 31 Aug 2019 08:56:21 +0800 Subject: [PATCH] osd: add objects_readv_sync However, this is only meaningful for ReplicatedBackend since ECBackend is already reading everything in asynchronous way. Also the osd_verify_sparse_read_holes option could be reliably dropped as it seems never (ever?) actually get a chance to be exercised ? Signed-off-by: xie xingguo --- src/common/legacy_config_opts.h | 1 - src/common/options.cc | 4 -- src/osd/PGBackend.h | 8 ++++ src/osd/PrimaryLogPG.cc | 68 ++++----------------------------- src/osd/ReplicatedBackend.cc | 14 +++++++ src/osd/ReplicatedBackend.h | 6 +++ 6 files changed, 36 insertions(+), 65 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 354475e0a48..825548dea04 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -755,7 +755,6 @@ OPTION(osd_op_complaint_time, OPT_FLOAT) // how many seconds old makes an op com OPTION(osd_command_max_records, OPT_INT) OPTION(osd_max_pg_blocked_by, OPT_U32) // max peer osds to report that are blocking our progress OPTION(osd_op_log_threshold, OPT_INT) // how many op log messages to show in one go -OPTION(osd_verify_sparse_read_holes, OPT_BOOL) // read fiemap-reported holes and verify they are zeros OPTION(osd_backoff_on_unfound, OPT_BOOL) // object unfound OPTION(osd_backoff_on_degraded, OPT_BOOL) // [mainly for debug?] object unreadable/writeable OPTION(osd_backoff_on_peering, OPT_BOOL) // [debug] pg peering diff --git a/src/common/options.cc b/src/common/options.cc index c90b3296c56..1029d8d5d50 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3694,10 +3694,6 @@ std::vector