From e9ac113f4f5169ed4ca32f90426446e69a2c453c Mon Sep 17 00:00:00 2001 From: Xuehan Xu Date: Tue, 8 Sep 2020 12:36:06 +0800 Subject: [PATCH] crimson/osd: drop repop if it can be discarded Signed-off-by: Xuehan Xu --- src/crimson/osd/pg.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crimson/osd/pg.cc b/src/crimson/osd/pg.cc index f1358ce4dfdba..ca99a4b99966a 100644 --- a/src/crimson/osd/pg.cc +++ b/src/crimson/osd/pg.cc @@ -908,6 +908,10 @@ seastar::future<> PG::handle_rep_op(Ref req) crimson::common::system_shutdown_exception()); } + if (can_discard_replica_op(*req)) { + return seastar::now(); + } + ceph::os::Transaction txn; auto encoded_txn = req->get_data().cbegin(); decode(txn, encoded_txn); -- 2.39.5