]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: reply -EOPNOTSUPP for unknown lock type
authorYan, Zheng <zyan@redhat.com>
Tue, 14 Oct 2014 14:02:41 +0000 (22:02 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 14 Oct 2014 14:03:34 +0000 (22:03 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/Server.cc

index e2159db6048b19af4997ec13297eaca4e455cccc..e1df31abe299afe14b82c2fdbf9338d5a8bf210d 100644 (file)
@@ -3203,7 +3203,7 @@ void Server::handle_client_file_setlock(MDRequestRef& mdr)
   default:
     dout(10) << "got unknown lock type " << set_lock.type
             << ", dropping request!" << dendl;
-    return;
+    reply_request(mdr, -EOPNOTSUPP);
   }
 
   dout(10) << " state prior to lock change: " << *lock_state << dendl;