From 0dd6e0fd28c9a33a00b94e17d661d4e9e90a8b24 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Thu, 17 Sep 2015 10:05:20 +0300 Subject: [PATCH] journal: don't use object_number when comparing positions Only tid does matter. Signed-off-by: Mykola Golub --- src/cls/journal/cls_journal_types.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cls/journal/cls_journal_types.h b/src/cls/journal/cls_journal_types.h index 54339b998f7ea..9bd647abda1a1 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; -- 2.39.5