mutation_partition: Throw std::out_of_range with backtrace on cell_at

Makes it easier to investigate bugs.

Signed-off-by: Duarte Nunes <duarte@scylladb.com>
Message-Id: <20180521133753.16375-1-duarte@scylladb.com>
This commit is contained in:
Duarte Nunes
2018-05-21 14:37:53 +01:00
committed by Avi Kivity
parent 701e6f2cff
commit eed09dfdf9

View File

@@ -1439,7 +1439,7 @@ row::cell_entry::cell_entry(cell_entry&& o) noexcept
const atomic_cell_or_collection& row::cell_at(column_id id) const {
auto&& cell = find_cell(id);
if (!cell) {
throw std::out_of_range(sprint("Column not found for id = %d", id));
throw_with_backtrace<std::out_of_range>(sprint("Column not found for id = %d", id));
}
return *cell;
}