mutation_partition: Print full position in error report in append_clustered_row()
std::prev(i) can be dummy.
This commit is contained in:
@@ -704,7 +704,7 @@ mutation_partition::append_clustered_row(const schema& s, position_in_partition_
|
||||
auto i = _rows.end();
|
||||
if (!_rows.empty() && (cmp(*std::prev(i), pos) >= 0)) {
|
||||
throw std::runtime_error(format("mutation_partition::append_clustered_row(): cannot append clustering row with key {} to the partition"
|
||||
", last clustering row is equal or greater: {}", pos, std::prev(i)->key()));
|
||||
", last clustering row is equal or greater: {}", pos, std::prev(i)->position()));
|
||||
}
|
||||
auto e = alloc_strategy_unique_ptr<rows_entry>(current_allocator().construct<rows_entry>(s, pos, dummy, continuous));
|
||||
i = _rows.insert_before_hint(i, std::move(e), cmp).first;
|
||||
|
||||
Reference in New Issue
Block a user