From: Samuel Just Date: Mon, 15 Sep 2014 22:44:11 +0000 (-0700) Subject: PGLog::claim_log_and_clear_rollback_info: fix rollback_info_trimmed_to X-Git-Tag: v0.80.6~4^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c4685075f583ff58cc05220a3044a10b8392033c;p=ceph.git PGLog::claim_log_and_clear_rollback_info: fix rollback_info_trimmed_to We have been setting it to the old head value. This is usually harmless since the new head will virtually always be ahead of the old head for claim_log_and_clear_rollback_info, but can cause trouble in some edge cases. Fixes: #9481 Backport: firefly Signed-off-by: Samuel Just (cherry picked from commit 0769310ccd4e0dceebd8ea601e8eb5c0928e0603) --- diff --git a/src/osd/PGLog.h b/src/osd/PGLog.h index 20021896f385..1744cc8f49cc 100644 --- a/src/osd/PGLog.h +++ b/src/osd/PGLog.h @@ -88,8 +88,8 @@ struct PGLog { assert(rollback_info_trimmed_to_riter == log.rbegin()); log = o.log; - rollback_info_trimmed_to = head; head = o.head; + rollback_info_trimmed_to = head; tail = o.tail; index(); }