crimson/osd: drop repop if it can be discarded

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
This commit is contained in:
Xuehan Xu 2020-09-08 12:36:06 +08:00
parent ab849a1378
commit e9ac113f4f

View File

@ -908,6 +908,10 @@ seastar::future<> PG::handle_rep_op(Ref<MOSDRepOp> 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);