**Describe the situation**
```
$ ./clickhouse-21.3.3 client --query "SELECT * FROM system.numbers_mt FORMAT Native" | pv > /dev/null
^C,1GiB 0:00:45 [ 710MiB/s] [                                                                                                                                                                                               <=>                      ]

$ ./clickhouse-21.3.3 client --compress 0 --query "SELECT * FROM system.numbers_mt FORMAT Native" | pv > /dev/null
^C,2GiB 0:00:12 [1,48GiB/s] [                                                   <=>                                                                                                                                                                  ]
```

{
    if (!quit)
    {
        quit = true;
        task_handle->deactivate();
    }
}
void StorageDistributedDirectoryMonitor::flushAllData()
{
    if (quit)
        return;
    std::lock_guard lock{mutex};
    const auto & files = getFiles();
    if (!files.empty())
    {
        processFiles(files);
        
        getFiles();
    }
}
void StorageDistributedDirectoryMonitor::shutdownAndDropAllData()