]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: return error to client on invalid mds op
authorSage Weil <sage@newdream.net>
Fri, 20 Aug 2010 05:01:54 +0000 (22:01 -0700)
committerSage Weil <sage@newdream.net>
Fri, 20 Aug 2010 05:01:54 +0000 (22:01 -0700)
e.g., if the client sends a filelock request and we don't support it :)

src/mds/Server.cc

index 8e61c67d517c7e33ccad94852a31face43da2ee0..c3105ff826cded443f64308624688ad2ac1b5cbd 100644 (file)
@@ -1172,7 +1172,7 @@ void Server::dispatch_client_request(MDRequest *mdr)
 
   default:
     dout(1) << " unknown client op " << req->get_op() << dendl;
-    assert(0);
+    reply_request(mdr, -EOPNOTSUPP);
   }
 }