We need to look at the _projected_ directory size for this to work.
Until then, disable the fastpath check.
assert(dir);
// does the frag _look_ empty?
- if (dir->get_num_head_items()) {
+ if (false && // FIXME: need to look at _projected_ directory size.
+ dir->get_num_head_items()) {
dout(10) << "dir_is_nonempty still " << dir->get_num_head_items()
<< " cached items in frag " << *dir << dendl;
reply_request(mdr, -ENOTEMPTY);