]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix get_caps_issued shift/mask bug
authorSage Weil <sage@newdream.net>
Tue, 21 Apr 2009 23:24:21 +0000 (16:24 -0700)
committerSage Weil <sage@newdream.net>
Tue, 21 Apr 2009 23:27:14 +0000 (16:27 -0700)
src/mds/CInode.h

index 0404545939d3e12d49fd7c37adc706b7fef65b0c..dcfb7325fcf9080fdf158b92906c7695f2a0b84b 100644 (file)
@@ -722,7 +722,7 @@ public:
     if (ploner) *ploner = (loner >> shift) & mask;
     if (pother) *pother = (other >> shift) & mask;
     if (pxlocker) *pxlocker = (xlocker >> shift) & mask;
-    return c;
+    return (c >> shift) & mask;
   }
   int get_caps_wanted(int *ploner = 0, int *pother = 0, int shift = 0, int mask = 0xffff) {
     int w = 0;