mds: don't try to recover filelocks if the client didn't encode any

This commit is contained in:
Greg Farnum 2010-08-06 14:58:23 -07:00
parent fd43724449
commit f5487fd11b

View File

@ -668,6 +668,7 @@ void Server::reconnect_tick()
void Server::recover_filelocks(CInode *in, bufferlist locks, int64_t client)
{
if (!locks.length()) return;
int numlocks;
ceph_filelock lock;
bufferlist::iterator p = locks.begin();