fix deadlock in inMemoryLog

This commit is contained in:
Sears Russell 2009-08-31 00:51:45 +00:00
parent 75ed19556b
commit 6abdb3c1c1

View file

@ -35,8 +35,8 @@ static int stasis_log_impl_in_memory_write_entry(stasis_log_t * log, LogEntry *e
lsn_t bufferOffset;
int done = 0;
writelock(impl->globalOffset_lock,0);
do{
writelock(impl->globalOffset_lock,0);
bufferOffset = impl->nextAvailableLSN - impl->globalOffset;
if(bufferOffset > impl->bufferLen) {
impl->bufferLen *= 2;