Previously even directories were getting added to the
list of inodes to check in rejoin. This was a (small)
waste of time, with these dir inodes getting passed
all the way down into check_inode_max_size for no purpose.
Signed-off-by: John Spray <john.spray@redhat.com>
utime_t new_mtime)
{
assert(in->is_auth());
+ assert(in->is_file());
inode_t *latest = in->get_projected_inode();
map<client_t, client_writeable_range_t> new_ranges;
CInode *in = p->second;
if (!in->is_auth())
continue;
+
+ // Only normal files need file size recovery
+ if (!in->is_file()) {
+ continue;
+ }
bool recover = false;
for (map<client_t,client_writeable_range_t>::iterator p = in->inode.client_ranges.begin();