librados: remove useless reference holding

This commit is contained in:
Yehuda Sadeh 2011-06-03 14:31:20 -07:00
parent 98a3b54641
commit b282603598

View File

@ -348,14 +348,12 @@ void librados::IoCtxImpl::complete_aio_write(AioCompletionImpl *c)
void librados::IoCtxImpl::flush_aio_writes()
{
get();
aio_write_list_lock.Lock();
tid_t seq = aio_write_seq;
while (!aio_write_list.empty() &&
aio_write_list.front()->aio_write_seq <= seq)
aio_write_cond.Wait(aio_write_list_lock);
aio_write_list_lock.Unlock();
put();
}
struct librados::ObjListCtx {