diff --git a/database.cc b/database.cc index 9daad806a1..e98765141d 100644 --- a/database.cc +++ b/database.cc @@ -1709,7 +1709,7 @@ future<> column_family::snapshot(sstring name) { } else { return make_ready_future<>(); } - }).then([this, &tables, jsondir] { + }).finally([this, &tables, jsondir] { auto shard = std::hash()(jsondir) % smp::count; std::unordered_set table_names; for (auto& sst : tables) {