fix infinite loop in dirty page table
This commit is contained in:
parent
81d2c1590e
commit
38884a6cd2
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ int stasis_dirty_page_table_flush_with_target(stasis_dirty_page_table_t * dirtyP
|
||||||
e = ((dpt_entry*)rbmin(dirtyPages->tableByLsnAndPage));
|
e = ((dpt_entry*)rbmin(dirtyPages->tableByLsnAndPage));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while(!all_flushed);
|
} while(targetLsn != LSN_T_MAX && !all_flushed);
|
||||||
if (targetLsn == LSN_T_MAX) {
|
if (targetLsn == LSN_T_MAX) {
|
||||||
pthread_cond_broadcast(&dirtyPages->flushDone);
|
pthread_cond_broadcast(&dirtyPages->flushDone);
|
||||||
dirtyPages->flushing = 0;
|
dirtyPages->flushing = 0;
|
||||||
|
|
Loading…
Reference in a new issue