summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2013-09-27 15:34:18 +0200
committerLoic Dachary <loic@dachary.org>2013-10-02 09:15:53 +0200
commit16fbdcdf9fd4fc28e67104f2cb20ff0e4043d3aa (patch)
tree4fb96af21bf5e819d44c3654545925e324564654
parent76321f8fc8ab5287e1a12473df8337cfd7711f4c (diff)
downloadceph-16fbdcdf9fd4fc28e67104f2cb20ff0e4043d3aa.tar.gz
common: ghobject get_filestore_key* use hobject counterpart
The get_filestore_key* methods are changed to just call the corresponding hobject methods instead of providing an identical implementation. Reviewed-by: David Zafman <david.zafman@inktank.com> Signed-off-by: Loic Dachary <loic@dachary.org>
-rw-r--r--src/common/hobject.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/common/hobject.h b/src/common/hobject.h
index e483b664347..46fc67b893a 100644
--- a/src/common/hobject.h
+++ b/src/common/hobject.h
@@ -241,14 +241,10 @@ public:
return ret;
}
filestore_hobject_key_t get_filestore_key_u32() const {
- assert(!hobj.max);
- return hobj._reverse_nibbles(hobj.hash);
+ return hobj.get_filestore_key_u32();
}
filestore_hobject_key_t get_filestore_key() const {
- if (hobj.max)
- return 0x100000000ull;
- else
- return get_filestore_key_u32();
+ return hobj.get_filestore_key();
}
// maximum sorted value.