]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: if checking caps on a snap, return, don't assert
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 17 Jun 2010 19:02:53 +0000 (12:02 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 18 Jun 2010 18:38:45 +0000 (11:38 -0700)
src/client/Client.cc

index ad806c7a1d0f1caaef71945ff3310cbf20e0b7c8..3d76299852928f2b01ddc76695bcec21ee96093e 100644 (file)
@@ -1748,7 +1748,7 @@ void Client::check_caps(Inode *in, bool is_delayed)
           << " is_delayed=" << is_delayed
           << dendl;
 
-  assert(in->snapid == CEPH_NOSNAP);
+  if (in->snapid != CEPH_NOSNAP) return; //snap caps last forever, can't write
   
   if (in->caps.empty())
     return;   // guard if at end of func