From ea49ea65e2727b3f2f4e89058ffc0086f0e40e02 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 24 Sep 2010 10:19:25 -0700 Subject: [PATCH] mds: alloc auth xlock on versionlock/LocalLock This is done when we do a slave xlock in order do avoid pipelining updates to the inode, making rollback of complex operations like rename/link safe. --- src/mds/locks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/locks.c b/src/mds/locks.c index e3bf84a5dcf4c..689762903496d 100644 --- a/src/mds/locks.c +++ b/src/mds/locks.c @@ -138,7 +138,7 @@ struct sm_t sm_filelock = { struct sm_state_t locallock[LOCK_MAX] = { // stable loner rep state r rp rd wr l x caps(any,loner,xlocker,replica) - [LOCK_LOCK] = { 0, false, LOCK_LOCK, ANY, 0, ANY, 0, ANY, 0, 0,0,0,0 }, + [LOCK_LOCK] = { 0, false, LOCK_LOCK, ANY, 0, ANY, 0, ANY, AUTH,0,0,0,0 }, }; struct sm_t sm_locallock = { -- 2.39.5