mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
crimson/osd: drop repop if it can be discarded
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
This commit is contained in:
parent
ab849a1378
commit
e9ac113f4f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user