mirror of
https://github.com/ceph/ceph
synced 2025-02-19 00:47:49 +00:00
Merge pull request #18693 from XinzeChi/wip-dup-async-read-stat
osd/PrimaryLogPG: fix dup stat for async read Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn> Reviewed-By: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
2d06baeae7
@ -7402,7 +7402,8 @@ int PrimaryLogPG::prepare_transaction(OpContext *ctx)
|
||||
|
||||
// read-op? write-op noop? done?
|
||||
if (ctx->op_t->empty() && !ctx->modify) {
|
||||
unstable_stats.add(ctx->delta_stats);
|
||||
if (ctx->pending_async_reads.empty())
|
||||
unstable_stats.add(ctx->delta_stats);
|
||||
if (ctx->op->may_write() &&
|
||||
get_osdmap()->require_osd_release >= CEPH_RELEASE_KRAKEN) {
|
||||
ctx->update_log_only = true;
|
||||
|
Loading…
Reference in New Issue
Block a user