]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix calls to Objecter::wait_for_map
authorJohn Spray <john.spray@redhat.com>
Fri, 25 Jul 2014 16:26:22 +0000 (17:26 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 25 Aug 2014 00:34:03 +0000 (01:34 +0100)
commit2be623b3268ec8aca8e54723b5d8a00b0dbb11f7
treed216353d0ee399c02ec08784d6d76022f9c5825f
parent619ea1fd77ddc8e9ffaa9b41e6a2ea73793f8986
mds: fix calls to Objecter::wait_for_map

These were wrong in the earlier commit:
"mds: use lock-safe OSDMap accessors; adjust Objecter wait_for_map call"

Rather than checking epoch explicitly and dropping the lock before
calling wait_for_map, just make a single call to wait_for_map and handle
the return code to learn whether we are waiting or not.

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