partition_version: add a logalloc::region argument to partition_entry::upgrade()

The argument is currently unused, but will be further propagated to
add_version() in an upcoming patch.
This commit is contained in:
Michał Chojnowski
2023-02-28 00:12:39 +01:00
parent 98dfe3355e
commit 94e4dc3d8d
5 changed files with 10 additions and 12 deletions

View File

@@ -1324,9 +1324,7 @@ void row_cache::upgrade_entry(cache_entry& e) {
if (e.schema() != _schema && !e.partition().is_locked()) {
auto& r = _tracker.region();
assert(!r.reclaiming_enabled());
with_allocator(r.allocator(), [this, &e] {
e.partition().upgrade(e.schema(), _schema, _tracker.cleaner(), &_tracker);
});
e.partition().upgrade(r, e.schema(), _schema, _tracker.cleaner(), &_tracker);
}
}