mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
sstables: fix use-after-free at the end of compaction
Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com> Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
This commit is contained in:
committed by
Avi Kivity
parent
e0eb07abe9
commit
b54d35dcbb
@@ -63,7 +63,7 @@ future<> compact_sstables(std::vector<shared_sstable> sstables,
|
||||
auto newtab = creator();
|
||||
future<> write_done = newtab->write_components(
|
||||
std::move(mutation_queue_reader), estimated_parititions, schema).then([newtab] {
|
||||
return newtab->load();
|
||||
return newtab->load().then([newtab] {});
|
||||
});
|
||||
|
||||
// Wait for both read_done and write_done fibers to finish.
|
||||
|
||||
Reference in New Issue
Block a user