]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: tidy up backtrace pool handling
authorJohn Spray <john.spray@redhat.com>
Wed, 6 Apr 2016 11:16:48 +0000 (12:16 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 6 Apr 2016 12:05:17 +0000 (13:05 +0100)
commit0f0964263c3cb9d28e68d6778b8a337fcd685af8
treeb51bf47e37d28b6934b315bb4f0919e2665360d1
parent4ddcf415efa01e09178e4f602ce06c5c13eb5699
mds: tidy up backtrace pool handling

Include the pool ID in the log message when
we get a write error (and don't say "dir ino"
because this is also the path for files)

Move the duplicated logic for picking the pool out
into get_backtrace_pool()

In get_backtrace_pool(), assert that files do indeed
have a pool set.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/CInode.cc
src/mds/CInode.h