From: Samuel Just Date: Mon, 28 Oct 2013 22:22:37 +0000 (-0700) Subject: ReplicatedPG::prepare_transaction: info.last_backfill is inclusive X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fce6524b9d759be18b9e2030f226f82a4bdcb55b;p=ceph.git ReplicatedPG::prepare_transaction: info.last_backfill is inclusive Signed-off-by: Samuel Just (cherry picked from commit 0a9a2d7b9c4013631e5e7d4b34bacaa4ec782147) --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 2150f5dfdeb..ee6aa0dbcaf 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -3900,7 +3900,7 @@ int ReplicatedPG::prepare_transaction(OpContext *ctx) if (backfill_target >= 0) { pg_info_t& pinfo = peer_info[backfill_target]; - if (soid < pinfo.last_backfill) + if (soid <= pinfo.last_backfill) pinfo.stats.stats.add(ctx->delta_stats, ctx->obc->obs.oi.category); else if (soid < backfill_pos) pending_backfill_updates[soid].stats.add(ctx->delta_stats, ctx->obc->obs.oi.category);