mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
*** empty log message ***
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@614 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
b629ca685b
commit
a54b797431
@ -225,7 +225,7 @@ void OSD::_lock_object(object_t oid)
|
||||
{
|
||||
if (object_lock.count(oid)) {
|
||||
Cond c;
|
||||
dout(0) << "lock_object " << hex << oid << dec << " waiting as " << &c << endl;
|
||||
dout(15) << "lock_object " << hex << oid << dec << " waiting as " << &c << endl;
|
||||
|
||||
list<Cond*>& ls = object_lock_waiters[oid]; // this is safe, right?
|
||||
ls.push_back(&c);
|
||||
@ -256,7 +256,7 @@ void OSD::unlock_object(object_t oid)
|
||||
// someone is in line
|
||||
Cond *c = object_lock_waiters[oid].front();
|
||||
assert(c);
|
||||
dout(0) << "unlock_object " << hex << oid << dec << " waking up next guy " << c << endl;
|
||||
dout(15) << "unlock_object " << hex << oid << dec << " waking up next guy " << c << endl;
|
||||
c->Signal();
|
||||
} else {
|
||||
// nobody waiting
|
||||
|
Loading…
Reference in New Issue
Block a user