]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix locallock rule (missing column)
authorSage Weil <sage@newdream.net>
Fri, 24 Sep 2010 22:22:18 +0000 (15:22 -0700)
committerSage Weil <sage@newdream.net>
Fri, 24 Sep 2010 22:22:18 +0000 (15:22 -0700)
The fwr column was missing, leading to a 0 for xlock, which broke slave
xlocks.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/locks.c

index 689762903496ddfa2ce2fec50437fe7fd440e476..e5ee98194f46959cdc8f8e0664d51662c5067103 100644 (file)
@@ -137,8 +137,8 @@ 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, AUTH,0,0,0,0 },
+                      // stable     loner  rep state  r     rp   rd   wr   fwr  l    x    caps(any,loner,xlocker,replica)
+    [LOCK_LOCK]      = { 0,         false, LOCK_LOCK, ANY,  0,   ANY, 0,   0,   ANY, AUTH,0,0,0,0 },
 };
 
 struct sm_t sm_locallock = {