client: fix shutdown with open inodes
This piece of code was dereferencing an invalid
iterator (invalidated by call to erase())
Signed-off-by: John Spray <firstname.lastname@example.org>
(cherry picked from commit d642b4f)
Looks like the build failure is glorious bluestore (although @dachary or whoever merges should check me on that).
Hey jenkins, try to test this please, bluestore failed.
tested at http://pulpito.ceph.com/jspray-2016-10-10_15:27:25-fs-wip-jcsp-backports-20161010-distro-basic-mira/