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

src/mds/Server.cc

index 22b00d7447569da84b91b3b6928aec4b1a2e50ce..b35cb56af6a7bcd0b124787583f5c2d93cf80b92 100644 (file)
@@ -3188,6 +3188,7 @@ void Server::handle_client_file_setlock(MDRequestRef& mdr)
   default:
     dout(10) << "got unknown lock type " << set_lock.type
             << ", dropping request!" << dendl;
+    reply_request(mdr, -EOPNOTSUPP);
     return;
   }