]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
server: don't get mdr hang for unknown lock type
authorxie xingguo <xie.xingguo@zte.com.cn>
Sun, 12 Jun 2016 06:42:00 +0000 (14:42 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sun, 12 Jun 2016 06:42:51 +0000 (14:42 +0800)
It's better to respond and do the cleanup jobs anyway.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mds/Server.cc

index d68499bbb6a0672452530544dd73f08530a65e18..af61e0b1117bb940b1baf516dba6b1763599f545 100644 (file)
@@ -3652,8 +3652,8 @@ void Server::handle_client_file_readlock(MDRequestRef& mdr)
     break;
 
   default:
-    dout(10) << "got unknown lock type " << checking_lock.type
-            << ", dropping request!" << dendl;
+    dout(10) << "got unknown lock type " << checking_lock.type << dendl;
+    respond_to_request(mdr, -EINVAL);
     return;
   }
   lock_state->look_for_lock(checking_lock);