fix deadlock in inMemoryLog
This commit is contained in:
parent
75ed19556b
commit
6abdb3c1c1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue