From 30527879b9626e1c7591b990bbab4f7226d647c9 Mon Sep 17 00:00:00 2001 From: feng lv Date: Sun, 26 Sep 2021 12:19:19 +0000 Subject: [PATCH] fix style --- src/Storages/FileLog/StorageFileLog.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Storages/FileLog/StorageFileLog.cpp b/src/Storages/FileLog/StorageFileLog.cpp index 9b64be4c99b..ebc8bb9ba8a 100644 --- a/src/Storages/FileLog/StorageFileLog.cpp +++ b/src/Storages/FileLog/StorageFileLog.cpp @@ -34,7 +34,6 @@ namespace DB namespace ErrorCodes { - extern const int LOGICAL_ERROR; extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH; extern const int BAD_ARGUMENTS; extern const int CANNOT_GET_FILE_STAT; @@ -375,7 +374,7 @@ void StorageFileLog::openFilesAndSetPos() { throw Exception(ErrorCodes::FILE_STREAM_ERROR, "File {} has been broken.", file); } - /// updte file end at the monment, used in ReadBuffer and serialize + /// update file end at the monment, used in ReadBuffer and serialize meta.last_open_end = file_end; context.reader.seekg(meta.last_writen_position); @@ -557,7 +556,7 @@ bool StorageFileLog::streamToViews() { block_io.out->write(block); rows += block.rows(); - /// During files open, also save file end at the openning moment + /// During files open, also save file end at the opening moment serialize(true); } block_io.out->writeSuffix();