]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/server: fix rare race when waitting for osdmap 9742/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 16 Jun 2016 09:16:28 +0000 (17:16 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 27 Jun 2016 03:11:49 +0000 (11:11 +0800)
commit68682775d485235b5b7c03a4647d759665b7aee1
treef744c7558e21239c5f560b3d3f7a9b40029c20d0
parent314005a730bfdd1642c3bd3c97061472c3297457
mds/server: fix rare race when waitting for osdmap

If wait_for_map() returns true, we have got the requested osdmap
at the specified epoch, so we shall try again to do further
verification whether we have the specific pool or not.

The above case can happen because we drop the objecter internal
rwlock during the switch between the objecter->with_osdmap()
and objecter->wait_for_map() methods.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mds/Server.cc
src/mds/Server.h