]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: Client.cc: correct the op type checking for CEPH_MDS_OP_CREATE 11608/head
authorWeibing Zhang <atheism.zhang@gmail.com>
Sat, 22 Oct 2016 11:40:10 +0000 (19:40 +0800)
committerWeibing Zhang <atheism.zhang@gmail.com>
Fri, 28 Oct 2016 06:47:42 +0000 (14:47 +0800)
Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
src/client/Client.cc

index a3194f23a8850800ab464cc3ae1855e4ad269eaf..645f3b97181b7bd084889d5cdec9f49338995ce9 100644 (file)
@@ -1303,7 +1303,7 @@ Inode* Client::insert_trace(MetaRequest *request, MetaSession *session)
       unsigned wanted = 0;
       if (op == CEPH_MDS_OP_GETATTR || op == CEPH_MDS_OP_LOOKUP)
        wanted = request->head.args.getattr.mask;
-      else if (op == CEPH_MDS_OP_OPEN || op == CEPH_MDS_OP_OPEN)
+      else if (op == CEPH_MDS_OP_OPEN || op == CEPH_MDS_OP_CREATE)
        wanted = request->head.args.open.mask;
 
       if ((wanted & CEPH_CAP_XATTR_SHARED) &&