]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
journal: don't use object_number when comparing positions
authorMykola Golub <mgolub@mirantis.com>
Thu, 17 Sep 2015 07:05:20 +0000 (10:05 +0300)
committerMykola Golub <mgolub@mirantis.com>
Wed, 11 Nov 2015 15:03:51 +0000 (17:03 +0200)
Only tid does matter.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/cls/journal/cls_journal_types.h

index 54339b998f7eabe264b1d0a30a6d9ad331b8c349..9bd647abda1a145bdf074eba2011c6fda2246c7c 100644 (file)
@@ -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;