From: Mykola Golub Date: Thu, 17 Sep 2015 07:05:20 +0000 (+0300) Subject: journal: don't use object_number when comparing positions X-Git-Tag: v10.0.1~85^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0dd6e0fd28c9a33a00b94e17d661d4e9e90a8b24;p=ceph.git journal: don't use object_number when comparing positions Only tid does matter. Signed-off-by: Mykola Golub --- diff --git a/src/cls/journal/cls_journal_types.h b/src/cls/journal/cls_journal_types.h index 54339b998f7e..9bd647abda1a 100644 --- a/src/cls/journal/cls_journal_types.h +++ b/src/cls/journal/cls_journal_types.h @@ -53,8 +53,7 @@ struct ObjectSetPosition { return (*this == rhs || *this < rhs); } inline bool operator==(const ObjectSetPosition &rhs) const { - return (object_number == rhs.object_number && - entry_positions == rhs.entry_positions); + return (entry_positions == rhs.entry_positions); } void encode(bufferlist& bl) const;