mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 02:44:18 +00:00
Correct version of D16821
This commit is contained in:
parent
2b95dc1542
commit
45ad75db80
|
@ -1941,7 +1941,6 @@ void DBImpl::BackgroundCallFlush() {
|
||||||
if (madeProgress || bg_schedule_needed_) {
|
if (madeProgress || bg_schedule_needed_) {
|
||||||
MaybeScheduleFlushOrCompaction();
|
MaybeScheduleFlushOrCompaction();
|
||||||
}
|
}
|
||||||
log_buffer.FlushBufferToLog();
|
|
||||||
bg_cv_.SignalAll();
|
bg_cv_.SignalAll();
|
||||||
// IMPORTANT: there should be no code after calling SignalAll. This call may
|
// IMPORTANT: there should be no code after calling SignalAll. This call may
|
||||||
// signal the DB destructor that it's OK to proceed with destruction. In
|
// signal the DB destructor that it's OK to proceed with destruction. In
|
||||||
|
@ -2026,7 +2025,6 @@ void DBImpl::BackgroundCallCompaction() {
|
||||||
if (madeProgress || bg_schedule_needed_) {
|
if (madeProgress || bg_schedule_needed_) {
|
||||||
MaybeScheduleFlushOrCompaction();
|
MaybeScheduleFlushOrCompaction();
|
||||||
}
|
}
|
||||||
log_buffer.FlushBufferToLog();
|
|
||||||
bg_cv_.SignalAll();
|
bg_cv_.SignalAll();
|
||||||
// IMPORTANT: there should be no code after calling SignalAll. This call may
|
// IMPORTANT: there should be no code after calling SignalAll. This call may
|
||||||
// signal the DB destructor that it's OK to proceed with destruction. In
|
// signal the DB destructor that it's OK to proceed with destruction. In
|
||||||
|
|
Loading…
Reference in a new issue