]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
object.h: initialize max in hobject_t(sobject_t) constructor
authorSamuel Just <samuel.just@dreamhost.com>
Fri, 16 Dec 2011 22:42:36 +0000 (14:42 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Fri, 16 Dec 2011 22:42:36 +0000 (14:42 -0800)
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/include/object.h

index 23785159f3672533a6cfbd1c271d920391dbfa8e..7d500d26e75fe63e3a55ee549fe9acdd3fc409f2 100644 (file)
@@ -313,7 +313,7 @@ public:
 
   /* Do not use when a particular hash function is needed */
   explicit hobject_t(const sobject_t &o) :
-    oid(o.oid), snap(o.snap) {
+    oid(o.oid), snap(o.snap), max(false) {
     hash = __gnu_cxx::hash<sobject_t>()(o);
   }