]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: take a remote_wrlock on srcdir for cross-mds rename
authorSage Weil <sage.weil@dreamhost.com>
Fri, 8 Jul 2011 16:32:04 +0000 (09:32 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 8 Jul 2011 16:48:00 +0000 (09:48 -0700)
commitd72bdab7d7c74148cbb119a0e7c1eb14a0432d46
tree4f36ceed464d6c354af893386bd84674b4eef254
parent025748a69586bbf0615b32b9a4a30effe0ade6da
mds: take a remote_wrlock on srcdir for cross-mds rename

This ensures that we hold a wrlock on the srcdn auth when the slave
makes it's changes to the src directory, and prevents us from corrupting
the scatterlock state.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/Server.cc