From c6b73eb469086a42a2d0aa1afc9fc56a450a7300 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 30 Dec 2013 12:52:20 -0800 Subject: [PATCH] osd/ReplicatedPG: always set obc->ssc SnapSetContext for clones This can be useful! Signed-off-by: Sage Weil --- src/osd/ReplicatedPG.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 8f5ccbb67e2e2..2605d5df2ffa8 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -6353,7 +6353,12 @@ int ReplicatedPG::find_object_context(const hobject_t& oid, return -ENOENT; } - put_snapset_context(ssc); + if (!obc->ssc) { + obc->ssc = ssc; + } else { + assert(obc->ssc == ssc); + put_snapset_context(ssc); + } ssc = 0; // clone -- 2.39.5