Fix build, typos check

This commit is contained in:
kssenii 2021-04-27 17:01:41 +00:00
parent 3a0372535e
commit 563f8a97c6
3 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,7 @@ struct FileTableEngineProgress
mutable std::atomic<uint64_t> processed_bytes;
mutable std::atomic<uint64_t> processed_rows;
FileTableEngineProgress() : total_bytes_to_process(0), processed_bytes(0) {}
FileTableEngineProgress() : total_bytes_to_process(0), processed_bytes(0), processed_rows(0) {}
FileTableEngineProgress(const FileTableEngineProgress & other)
: watch(other.watch)

View File

@ -54,7 +54,7 @@ public:
void setProcessListElement(QueryStatus * elem) final { process_list_elem = elem; }
void addTotalRowsApprox(size_t value) final { total_rows_approx += value; }
/// This method might be overriden, if, during query execution, there is a Source, that needs
/// This method might be overridden, if, during query execution, there is a Source, that needs
/// to add one more progress callback.
void setProgressCallback(const ProgressCallback & callback) override { progress_callback = callback; }

View File

@ -27,6 +27,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <algorithm>
#include <Poco/Path.h>
#include <Poco/File.h>
@ -456,7 +457,7 @@ public:
};
size_t terminal_width = getTerminalWidth();
auto & file_progress = context->getFileTableEngineProgress();
const auto & file_progress = context->getFileTableEngineProgress();
WriteBufferFromFileDescriptor message(STDERR_FILENO, 1024);
if (!file_progress.processed_bytes)