]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs: fix mount point break off problem after mds switch occured 14267/head
authorYunfeiGuan <yunfei.guan@xtaotech.com>
Mon, 10 Apr 2017 05:48:47 +0000 (05:48 +0000)
committerYunfeiGuan <yunfei.guan@xtaotech.com>
Mon, 10 Apr 2017 05:48:47 +0000 (05:48 +0000)
commit4ef830c5d6f22bf0d4f82a8624c772ecbbda44a6
treebe85e505d5be7377a786425383fc0dd91ce0e070
parent8f8575a4eb9005b6ea5e22f2a01bfda7c55ef5a8
cephfs: fix mount point break off problem after mds switch occured

The hot-standby become active as we expected but the mount piont broken strangely
when the active mds is down. The root reason is the new mds use last_cap_renews
decoded from ESesson::replay in find_idle_sessions and wrongly killed the session.
Maybe we should reset session->last_cap_renew to the current time when server send
OPEN to client in reconnect stage.

Fixes: http://tracker.ceph.com/issues/19437
Signed-off-by: Guan yunfei <yunfei.guan@xtaotech.com>
src/mds/Server.cc