From: Sage Weil Date: Mon, 24 Aug 2009 22:27:29 +0000 (-0700) Subject: uclient: don't croak on flush_set_callback on nonexistant ino X-Git-Tag: v0.14~127 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2bdcc6846a21ed84a415e37050fdbc5d6b3409bd;p=ceph.git uclient: don't croak on flush_set_callback on nonexistant ino Not sure where this is happening exactly.. :/ --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 7113be3d85fa..6f1c9915e1f6 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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)