Recently, memtable flush in test requires storage service for tests, or it fails with "Assertion `local_is_initialized()' failed". storage_service_for_tests needs to run in a thread, that's why flush_memtable was flattened. Last but not least, we need to revert flushed memory account because same memtable is used for all sstables in the perf test so as not to trigger `_mt._flushed_memory <= _mt.occupancy().used_space()' Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com> Message-Id: <20171205012853.21559-1-raphaelsc@scylladb.com>