]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: share inode max size after MDS recovers
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 12 Mar 2013 08:27:22 +0000 (16:27 +0800)
committerGreg Farnum <greg@inktank.com>
Mon, 1 Apr 2013 16:26:23 +0000 (09:26 -0700)
commit10b1a5663f51ddc05f287aead9a0078d96ae296a
tree9be43340dc095939f2dd2888d891bd6f8fb47a05
parentb2342a9c31eb4008d609c0796c75d80cd8a8d526
mds: share inode max size after MDS recovers

The MDS may crash after journaling the new max size, but before sending
the new max size to the client. Later when the MDS recovers, the client
re-requests the new max size, but the MDS finds max size unchanged. So
the client waits for the new max size forever. This issue can be avoided
by checking client cap's last_sent, share inode max size if it is zero.
(reconnected cap's last_sent is zero)

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/mds/Locker.cc
src/mds/Locker.h
src/mds/MDCache.cc