From 9b7fa388c51e5b4e32703eb6cd859caa38ea7f9f Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 8 Apr 2014 10:47:55 -0700 Subject: [PATCH] ReplicatedPG::process_copy_chunk: don't check snaps if we got head Even if we are promoting a clone, we may be reading from head. Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index d8e092fc571e6..06034667bfb9e 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -5533,7 +5533,7 @@ void ReplicatedPG::process_copy_chunk(hobject_t oid, ceph_tid_t tid, int r) assert(cop->rval >= 0); - if (oid.snap < CEPH_NOSNAP) { + if (oid.snap < CEPH_NOSNAP && !cop->results.snaps.empty()) { // verify snap hasn't been deleted vector::iterator p = cop->results.snaps.begin(); while (p != cop->results.snaps.end()) { -- 2.39.5