]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MonClient: don't return zero global_id
authorKefu Chai <kchai@redhat.com>
Wed, 8 Mar 2017 03:27:31 +0000 (11:27 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 10 Mar 2017 12:54:08 +0000 (20:54 +0800)
commit7f964fe48adb7cd62dd1ad09683f2e2d28ed2854
tree94b42e2372768aeb4aa33f146be2d8b674c25d55
parent83d0704d2a3896bc068a1c8d0821674aab50f63f
mon/MonClient: don't return zero global_id

active_con is reset after re-connecting. get_global_id() return 0
before mon client receives the MAuthReply. The zero global_id
confuses mds code. in this change, MonClient promote the active_con's
global_id to this->global_id once it's authorized. and returns
this->global_id in get_global_id().

Fixes: http://tracker.ceph.com/issues/19134
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/MonClient.cc
src/mon/MonClient.h