]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: make sure we don't return EAGAIN to client
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 3 Jun 2010 20:54:24 +0000 (13:54 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 3 Jun 2010 21:12:41 +0000 (14:12 -0700)
src/osd/ReplicatedPG.cc

index 8c11f7b5faf4aaefbb3c0b6d89726fe9e739c205..c420a1399d05e2a7febd3d8e86c57ffb6739a3ef 100644 (file)
@@ -485,6 +485,7 @@ void ReplicatedPG::do_op(MOSDOp *op)
   bool can_create = op->may_write();
   int r = find_object_context(op->get_oid(), op->get_snapid(), &obc, can_create);
   if (r) {
+    assert(r != -EAGAIN);
     osd->reply_op_error(op, r);
     return;
   }