]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
object.h: initalize hobject_t correctly
authorSamuel Just <samuel.just@dreamhost.com>
Thu, 8 Sep 2011 21:51:02 +0000 (14:51 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Thu, 8 Sep 2011 21:54:10 +0000 (14:54 -0700)
key previously was erroneously initialized to soid.oid.name in one
constructor.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/include/object.h

index f24587a55c62fda20ce22a9894bad9f10ae62ff6..6aebba76ced6b6154488e40e48fc33d4ba36f62a 100644 (file)
@@ -279,7 +279,7 @@ public:
 
   hobject_t(const sobject_t &soid, const string &key, uint32_t hash) : 
     oid(soid.oid), snap(soid.snap), hash(hash),
-    key(soid.oid.name == key ? string() : soid.oid.name) {}
+    key(soid.oid.name == key ? string() : key) {}
 
   /* Do not use when a particular hash function is needed */
   explicit hobject_t(const sobject_t &o) :