]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: add operator== to AllocExtent structure
authorIgor Fedotov <ifedotov@mirantis.com>
Wed, 23 Nov 2016 14:39:17 +0000 (14:39 +0000)
committerIgor Fedotov <ifedotov@mirantis.com>
Thu, 2 Feb 2017 15:22:50 +0000 (15:22 +0000)
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
src/os/bluestore/bluestore_types.h

index 7e0bcf2a4cdfdba0cf2e402cfd0db7cf586e8f95..23a7af0fe2f6b7511b29939400367baf1650089f 100644 (file)
@@ -78,6 +78,9 @@ public:
   uint64_t end() const {
     return offset + length;
   }
+  bool operator==(const AllocExtent& other) const {
+    return offset == other.offset && length == other.length;
+  }
 };
 
 inline static ostream& operator<<(ostream& out, const AllocExtent& e) {