]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: don't croak on flush_set_callback on nonexistant ino
authorSage Weil <sage@newdream.net>
Mon, 24 Aug 2009 22:27:29 +0000 (15:27 -0700)
committerSage Weil <sage@newdream.net>
Mon, 24 Aug 2009 22:27:43 +0000 (15:27 -0700)
Not sure where this is happening exactly.. :/

src/client/Client.cc

index 7113be3d85faa3e7e997e5fbc2163c0db2037237..6f1c9915e1f68c6059a42bf26a163c3763a2d1dd 100644 (file)
@@ -1820,8 +1820,8 @@ void Client::flush_set_callback(inodeno_t ino)
   //  Mutex::Locker l(client_lock);
   assert(client_lock.is_locked());   // will be called via dispatch() -> objecter -> ...
   Inode *in = inode_map[vinodeno_t(ino,CEPH_NOSNAP)];
-  assert(in);
-  _flushed(in);
+  if (in)
+    _flushed(in);
 }
 
 void Client::_flushed(Inode *in)