]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: print hexadecimal for ghobject_t.generation & shard_id 4171/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 26 Mar 2015 05:51:02 +0000 (13:51 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 26 Mar 2015 05:51:02 +0000 (13:51 +0800)
In filestore, it use hexadecimal for ghobject_t.generation &
shard_id. Make the same.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/common/hobject.cc

index fda169bf6d6777a1af825aadb2290b4caedd6a49..ba278d64041346b9e474bb7d949f4558460eb844 100644 (file)
@@ -292,7 +292,7 @@ ostream& operator<<(ostream& out, const ghobject_t& o)
   if (o.generation != ghobject_t::NO_GEN ||
       o.shard_id != shard_id_t::NO_SHARD) {
     assert(o.shard_id != shard_id_t::NO_SHARD);
-    out << "/" << o.generation << "/" << (unsigned)(o.shard_id);
+    out << "/" << std::hex << o.generation << "/" << (unsigned)(o.shard_id) << std::dec;
   }
   return out;
 }