The lock gather may be sufficient to propagate the updated snaprealm to
the replica; it might not. See #925.
See: #926
Signed-off-by: Sage Weil <sage@newdream.net>
if (oldin->is_dir())
rdlocks.insert(&oldin->filelock);
}
- if (srcdnl->is_primary() && srci->is_dir())
+ if (srcdnl->is_primary() && srci->is_dir())
+ // FIXME: this should happen whenever we are renamning between
+ // realms, regardless of the file type
xlocks.insert(&srci->snaplock); // FIXME: an auth bcast could be sufficient?
else
rdlocks.insert(&srci->snaplock);