From: Igor Fedotov Date: Wed, 23 Nov 2016 14:39:17 +0000 (+0000) Subject: os/bluestore: add operator== to AllocExtent structure X-Git-Tag: v12.0.1~379^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a4fdbad2947261bc0ccacb866eda5221cdaf25f4;p=ceph.git os/bluestore: add operator== to AllocExtent structure Signed-off-by: Igor Fedotov --- diff --git a/src/os/bluestore/bluestore_types.h b/src/os/bluestore/bluestore_types.h index 7e0bcf2a4cdf..23a7af0fe2f6 100644 --- a/src/os/bluestore/bluestore_types.h +++ b/src/os/bluestore/bluestore_types.h @@ -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) {