File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1120,16 +1120,16 @@ void CompactionIterator::NextFromInput() {
1120
1120
}
1121
1121
}
1122
1122
1123
- if (!Valid () && IsShuttingDown ()) {
1123
+ if (!Valid () && status_. ok () && IsShuttingDown ()) {
1124
1124
status_ = Status::ShutdownInProgress ();
1125
1125
}
1126
1126
1127
- if (IsPausingManualCompaction ()) {
1127
+ if (status_. ok () && IsPausingManualCompaction ()) {
1128
1128
status_ = Status::Incomplete (Status::SubCode::kManualCompactionPaused );
1129
1129
}
1130
1130
1131
1131
// Propagate corruption status from memtable itereator
1132
- if (!input_.Valid () && input_.status ().IsCorruption ()) {
1132
+ if (status_. ok () && !input_.Valid () && input_.status ().IsCorruption ()) {
1133
1133
status_ = input_.status ();
1134
1134
}
1135
1135
}
Original file line number Diff line number Diff line change @@ -1610,11 +1610,10 @@ Status CompactionJob::FinalizeProcessKeyValueStatus(
1610
1610
status =
1611
1611
Status::ColumnFamilyDropped (" Column family dropped during compaction" );
1612
1612
}
1613
- if ((status.ok () || status.IsColumnFamilyDropped ()) &&
1614
- shutting_down_->load (std::memory_order_relaxed)) {
1613
+ if (status.ok () && shutting_down_->load (std::memory_order_relaxed)) {
1615
1614
status = Status::ShutdownInProgress (" Database shutdown" );
1616
1615
}
1617
- if (( status.ok () || status. IsColumnFamilyDropped () ) &&
1616
+ if (status.ok () &&
1618
1617
(manual_compaction_canceled_.load (std::memory_order_relaxed))) {
1619
1618
status = Status::Incomplete (Status::SubCode::kManualCompactionPaused );
1620
1619
}
You can’t perform that action at this time.
0 commit comments