]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: Kick waiters for max size 191/head
authorSam Lang <sam.lang@inktank.com>
Mon, 1 Apr 2013 14:06:59 +0000 (09:06 -0500)
committerSam Lang <sam.lang@inktank.com>
Wed, 3 Apr 2013 16:36:39 +0000 (11:36 -0500)
commit0ce09fad559700de3975e7152adb948ecff23303
tree2d2abbd46ae2750576fdbf77ce9a287bc5275405
parentf9b7dff70a4c78ab4af139df55bea530bd5d1320
client: Kick waiters for max size

If the mds restarts without successfully logging a max size
cap update, the client waits indefinitely in Client::get_caps
on the waitfor_caps list.  So when the client gets an mds map
indicating a new active mds has replaced a down mds, we need to
kick the caps update request.  This patch mimics the behavior
in the kernel by setting the wanted_max_size
and requested_max_size to 0 and wakes up the waiters.

Fixes #4582.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/client/Client.cc
src/client/Client.h