]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/hobject: compare two objects' key directly 21062/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 27 Mar 2018 09:11:57 +0000 (17:11 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 27 Mar 2018 10:11:21 +0000 (18:11 +0800)
commit1754fc39086c52281d9b1c4b6a620b3c1dda4978
tree06e75fb34f41427f58f65b02c52bcfd88bc9a61f
parent212a59226594883c0cea5760c2bfc9d0b6511014
common/hobject: compare two objects' key directly

The original implement does not appear to be a problem for two different
objects which are usually of different oids/names.
However, for a specific head object and its posterity snap objects, this
is not very effective since we are going to compare oids/names twice
(because they are definitely equivalent).

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/common/hobject.cc