]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: reply -EOPNOTSUPP for unknown lock type 2742/head
authorYan, Zheng <zyan@redhat.com>
Tue, 14 Oct 2014 14:02:41 +0000 (22:02 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 17 Oct 2014 14:04:07 +0000 (22:04 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 675392335c53ff7879031fb9184e4f35bcc90fe2)

src/mds/Server.cc

index 64004b2270cdfa3130d06b9102585214a38567b6..3a96f931a26c231fab5ff57a91fb31f495dc42d7 100644 (file)
@@ -3097,8 +3097,9 @@ void Server::handle_client_file_setlock(MDRequestRef& mdr)
     break;
 
   default:
-    dout(0) << "got unknown lock type " << set_lock.type
-           << ", dropping request!" << dendl;
+    dout(10) << "got unknown lock type " << set_lock.type
+            << ", dropping request!" << dendl;
+    reply_request(mdr, -EOPNOTSUPP);
     return;
   }