compaction: error on invalid scrub type

gcc allows an enum to contain a value outside its enum set,
so we need to handle it. Since it shouldn't happen, signal
an internal error.
This commit is contained in:
Avi Kivity
2023-03-19 19:06:53 +02:00
parent 7bb717d2f9
commit 32cc975b2f

View File

@@ -1573,6 +1573,7 @@ future<compaction_manager::compaction_stats_opt> compaction_manager::perform_sst
case sstables::compaction_type_options::scrub::quarantine_mode::only:
return sst->is_quarantined();
}
on_internal_error(cmlog, "bad scrub quarantine mode");
}));
return make_ready_future<std::vector<sstables::shared_sstable>>(std::move(sstables));
}, can_purge_tombstones::no);