]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: reply -EOPNOTSUPP for unknown lock type 2741/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:05:35 +0000 (22:05 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 675392335c53ff7879031fb9184e4f35bcc90fe2)

src/mds/Server.cc

index 0c500cdfe63f76fa813a3c7ff367d3f2946cd01a..924a6523aafd625ac27996cb877c1f3a4b6154a0 100644 (file)
@@ -3011,8 +3011,9 @@ void Server::handle_client_file_setlock(MDRequest *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;
   }