]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: implement BlueRocksEnv::AreFilesSame() 18392/head
authorKefu Chai <kchai@redhat.com>
Thu, 19 Oct 2017 07:22:49 +0000 (15:22 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 20 Oct 2017 04:25:14 +0000 (12:25 +0800)
commit5d31a5aee4be895b34417fa0a23c7d7765330097
treed4ad577879da995c214c9da65472639114882253
parent74f147b8496fe6b6277f43638d2f362088d71ff1
os/bluestore: implement BlueRocksEnv::AreFilesSame()

it is used by the "repair" feature to dedup the files to be searched for
MANIFEST-* files. the default implementation is the POSIX one, which
tries to look at the local fs, but we should be looking for the files in
the bluefs. in this very use case, wal and db do not share the same device,
so we can just compare the paths. actually, it should aways return
"false". as the files being compared are always "db" and "db.wal".

Fixes: http://tracker.ceph.com/issues/21842
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/BlueRocksEnv.cc
src/os/bluestore/BlueRocksEnv.h