]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: don't look at snapid if may_write().. it's not defined (see snapc!)
authorSage Weil <sage@newdream.net>
Thu, 21 May 2009 19:33:43 +0000 (12:33 -0700)
committerSage Weil <sage@newdream.net>
Thu, 21 May 2009 19:34:17 +0000 (12:34 -0700)
src/osd/OSD.cc

index e7ee2182ac327b97381c5c76664eb2933620c6fa..9ae72293232e35c79c40b8eb60853d08cf12b54d 100644 (file)
@@ -3466,12 +3466,6 @@ void OSD::handle_op(MOSDOp *op)
 
   // pg must be same-ish...
   if (op->may_write()) {
-    if (op->get_snapid() != CEPH_NOSNAP) {
-      reply_op_error(op, -EINVAL);
-      pg->unlock();
-      return;
-    }
-
     // modify
     if ((!pg->is_primary() ||
         !pg->same_for_modify_since(op->get_map_epoch()))) {