]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: remove useless code in inode_backtrace_t::compare
authorYan, Zheng <zyan@redhat.com>
Mon, 17 Oct 2016 07:09:45 +0000 (15:09 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 17 Oct 2016 07:23:21 +0000 (15:23 +0800)
commit0c8fec323e59984b7a17e57450dc978e2dbf8bd3
treec2f7fe2f057cbe741bd15069fb6734096b5e3efe
parentb7100de815a1325a484588ae4bba31f76d887daa
mds: remove useless code in inode_backtrace_t::compare

if (ancestors[i-1].version < other.ancestors[i-1].version),
variable comparator must be -1.
if (ancestors[i-1].version < other.ancestors[i-1].version),
variable comparator must be 1.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/inode_backtrace.cc