From: Samuel Just Date: Sun, 23 Feb 2014 00:38:46 +0000 (-0800) Subject: PGLog::activate_not_complete: fix log.complete_to increment typo X-Git-Tag: v0.78~134^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1300%2Fhead;p=ceph.git PGLog::activate_not_complete: fix log.complete_to increment typo info.last_complete should be the entry before log.complete_to. This appears to have been a typo introduced in dd71051a8f6ec611b3559f8e2aff3c001be37792. Signed-off-by: Samuel Just --- diff --git a/src/osd/PGLog.h b/src/osd/PGLog.h index e5ef923521c..9d994eeebb5 100644 --- a/src/osd/PGLog.h +++ b/src/osd/PGLog.h @@ -377,7 +377,7 @@ public: if (log.complete_to == log.log.begin()) { info.last_complete = eversion_t(); } else { - ++log.complete_to; + --log.complete_to; info.last_complete = log.complete_to->version; ++log.complete_to; }