diff --git a/database.cc b/database.cc index bc198e9fd8..59a1400587 100644 --- a/database.cc +++ b/database.cc @@ -1073,9 +1073,7 @@ column_family::stop() { return when_all(_memtables->request_flush(), _streaming_memtables->request_flush()).discard_result().finally([this] { return _compaction_manager.remove(this).then([this] { // Nest, instead of using when_all, so we don't lose any exceptions. - return _flush_queue->close().then([this] { - return _streaming_flush_gate.close(); - }); + return _streaming_flush_gate.close(); }).then([this] { return _sstable_deletion_gate.close(); });