db: don't perform move on tablet_hint reference

This lambda is called several times so there should be no move.
Currently the bug likely doesn't manifest as code does work
only on shard 0.
This commit is contained in:
Marcin Maliszkiewicz
2024-11-11 16:39:11 +01:00
parent 1c5ec877a7
commit e242ae7ee8

View File

@@ -671,7 +671,7 @@ static future<affected_tables_and_views> merge_tables_and_views(distributed<serv
// and so that compaction groups are not destroyed altogether.
// We must also do it before tables are created so that new tables see the tablet map.
co_await db.invoke_on_all([&] (replica::database& db) -> future<> {
co_await db.get_notifier().update_tablet_metadata(std::move(tablet_hint));
co_await db.get_notifier().update_tablet_metadata(tablet_hint);
});
}