]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools: recover_dentries efficiency
authorJohn Spray <john.spray@redhat.com>
Thu, 15 Jan 2015 12:13:24 +0000 (12:13 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 19 Jan 2015 14:09:34 +0000 (14:09 +0000)
commit9d917575596b83ec7c17a36a738936cc7e1dcd66
tree1ab780588f5876d85286de2c89212562236a4a72
parente2ae91fc704d4ac90ec31ed0c96da0a93a12e455
tools: recover_dentries efficiency

Avoid a redundant stat, and gather updates to a frag
into a single OMAP get/set.

Still could be heaps more efficient in the case of
many updates to the same dirs by adding in a little
cache and batching the updates.

Signed-off-by: John Spray <john.spray@redhat.com>
src/tools/cephfs/JournalTool.cc