[Refactor] Use '#pragma once' to replace '#define' and '#endif' (#9062)

This commit is contained in:
hongbin
2022-04-18 09:54:59 +08:00
committed by GitHub
parent c71ffc01de
commit be0ba76dff
56 changed files with 68 additions and 167 deletions

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_BASE_COMPACTION_H
#define DORIS_BE_SRC_OLAP_BASE_COMPACTION_H
#pragma once
#include "olap/compaction.h"
@ -53,4 +52,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_BASE_COMPACTION_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_BASE_TABLET_H
#define DORIS_BE_SRC_OLAP_BASE_TABLET_H
#pragma once
#include <memory>
@ -151,4 +150,3 @@ inline const TabletSchema& BaseTablet::tablet_schema() const {
} /* namespace doris */
#endif /* DORIS_BE_SRC_OLAP_BASE_TABLET_H */

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_BHP_LIB_H
#define DORIS_BE_SRC_OLAP_BHP_LIB_H
#pragma once
#include <stddef.h>
@ -752,5 +751,3 @@ inline int baidu_crc32_qw(char const* src, int crc, unsigned int length) {
}
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_BHP_LIB_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_BLOCK_COLUMN_PREDICATE_H
#define DORIS_BE_SRC_OLAP_BLOCK_COLUMN_PREDICATE_H
#pragma once
#include <vector>
@ -138,4 +137,3 @@ public:
} //namespace doris
#endif //DORIS_BE_SRC_OLAP_COLUMN_PREDICATE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_BLOOM_FILTER_PREDICATE_H
#define DORIS_BE_SRC_OLAP_BLOOM_FILTER_PREDICATE_H
#pragma once
#include <stdint.h>
@ -148,4 +147,3 @@ public:
} //namespace doris
#endif //DORIS_BE_SRC_OLAP_BLOOM_FILTER_PREDICATE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_BLOOM_FILTER_READER_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_BLOOM_FILTER_READER_H
#pragma once
#include <vector>
@ -65,4 +64,4 @@ private:
};
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_BLOOM_FILTER_READER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_BLOOM_FILTER_WRITER_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_BLOOM_FILTER_WRITER_H
#pragma once
#include <vector>
@ -41,4 +40,4 @@ private:
};
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_BLOOM_FILTER_WRITER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_BYTE_BUFFER_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_BYTE_BUFFER_H
#pragma once
#include "olap/file_helper.h"
#include "olap/olap_define.h"
@ -209,4 +208,4 @@ private:
};
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_BYTE_BUFFER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_PREDICATE_H
#define DORIS_BE_SRC_OLAP_COLUMN_PREDICATE_H
#pragma once
#include <roaring/roaring.hh>
@ -95,4 +94,3 @@ protected:
} //namespace doris
#endif //DORIS_BE_SRC_OLAP_COLUMN_PREDICATE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COMPACTION_H
#define DORIS_BE_SRC_OLAP_COMPACTION_H
#pragma once
#include <vector>
@ -103,4 +102,3 @@ protected:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COMPACTION_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COMPARISON_PREDICATE_H
#define DORIS_BE_SRC_OLAP_COMPARISON_PREDICATE_H
#pragma once
#include <stdint.h>
@ -63,4 +62,3 @@ COMPARISON_PRED_CLASS_DEFINE(GreaterEqualPredicate, GE)
} //namespace doris
#endif //DORIS_BE_SRC_OLAP_COMPARISON_PREDICATE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_COMPRESS_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_COMPRESS_H
#pragma once
#include "olap/olap_define.h"
@ -54,4 +53,4 @@ Status lz4_compress(StorageByteBuffer* in, StorageByteBuffer* out, bool* smaller
Status lz4_decompress(StorageByteBuffer* in, StorageByteBuffer* out);
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_COMPRESS_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_CUMULATIVE_COMPACTION_H
#define DORIS_BE_SRC_OLAP_CUMULATIVE_COMPACTION_H
#pragma once
#include <string>
@ -50,4 +49,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_CUMULATIVE_COMPACTION_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef OLAP_CUMULATIVE_COMPACTION_POLICY_H
#define OLAP_CUMULATIVE_COMPACTION_POLICY_H
#pragma once
#include <string>
@ -261,4 +260,4 @@ private:
};
} // namespace doris
#endif // OLAP_CUMULATIVE_COMPACTION_POLICY_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_DELETE_HANDLER_H
#define DORIS_BE_SRC_OLAP_DELETE_HANDLER_H
#pragma once
#include <string>
#include <vector>
@ -140,4 +139,4 @@ private:
};
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_DELETE_HANDLER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_DELTA_WRITER_H
#define DORIS_BE_SRC_DELTA_WRITER_H
#pragma once
#include "gen_cpp/internal_service.pb.h"
#include "olap/rowset/rowset_writer.h"
@ -122,4 +121,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_DELTA_WRITER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_FIELD_H
#define DORIS_BE_SRC_OLAP_FIELD_H
#pragma once
#include <sstream>
#include <string>
@ -792,4 +791,3 @@ public:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_FIELD_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_FILE_HELPER_H
#define DORIS_BE_SRC_OLAP_FILE_HELPER_H
#pragma once
#include <stdio.h>
#include <sys/stat.h>
@ -435,4 +434,3 @@ Status FileHeader<MessageType, ExtraType, FileHandlerType>::validate(
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_FILE_HELPER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_FILE_STREAM_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_FILE_STREAM_H
#pragma once
#include <gen_cpp/column_data_file.pb.h>
@ -274,4 +273,3 @@ inline Status ReadOnlyFileStream::read_all(char* buffer, uint64_t* buffer_size)
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_FILE_STREAM_H

View File

@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.
#pragma once
#include "olap/iterators.h"
namespace doris {

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_HLL_H
#define DORIS_BE_SRC_OLAP_HLL_H
#pragma once
#include <math.h>
#include <stdio.h>
@ -383,4 +382,3 @@ public:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_HLL_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_IN_LIST_PREDICATE_H
#define DORIS_BE_SRC_OLAP_IN_LIST_PREDICATE_H
#pragma once
#include <parallel_hashmap/phmap.h>
#include <stdint.h>
@ -107,5 +106,3 @@ IN_LIST_PRED_CLASS_DEFINE(InListPredicate, IN_LIST)
IN_LIST_PRED_CLASS_DEFINE(NotInListPredicate, NO_IN_LIST)
} //namespace doris
#endif //DORIS_BE_SRC_OLAP_IN_LIST_PREDICATE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_IN_STREAM_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_IN_STREAM_H
#pragma once
#include <gen_cpp/column_data_file.pb.h>
@ -191,4 +190,3 @@ inline Status InStream::read(char* buffer, uint64_t* buf_size) {
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_IN_STREAM_H

View File

@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef DORIS_BE_SRC_OLAP_LRU_CACHE_H
#define DORIS_BE_SRC_OLAP_LRU_CACHE_H
#pragma once
#include <gtest/gtest_prod.h>
#include <rapidjson/document.h>
@ -397,4 +396,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_LRU_CACHE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_MEMTABLE_H
#define DORIS_BE_SRC_OLAP_MEMTABLE_H
#pragma once
#include <ostream>
@ -135,4 +134,3 @@ inline std::ostream& operator<<(std::ostream& os, const MemTable& table) {
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_MEMTABLE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_MERGER_H
#define DORIS_BE_SRC_OLAP_MERGER_H
#pragma once
#include "olap/olap_define.h"
#include "olap/rowset/rowset_writer.h"
@ -43,4 +42,3 @@ public:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_MERGER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_NULL_PREDICATE_H
#define DORIS_BE_SRC_OLAP_NULL_PREDICATE_H
#pragma once
#include <stdint.h>
@ -59,4 +58,3 @@ private:
} //namespace doris
#endif //DORIS_BE_SRC_OLAP_NULL_PREDICATE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_OLAP_COMMON_H
#define DORIS_BE_SRC_OLAP_OLAP_COMMON_H
#pragma once
#include <netinet/in.h>
@ -390,4 +389,3 @@ struct RowsetId {
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_OLAP_COMMON_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_OLAP_COND_H
#define DORIS_BE_SRC_OLAP_OLAP_COND_H
#pragma once
#include <functional>
#include <map>
@ -201,4 +200,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_OLAP_COND_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_OLAP_INDEX_H
#define DORIS_BE_SRC_OLAP_OLAP_INDEX_H
#pragma once
#include <condition_variable>
#include <iterator>
@ -380,4 +379,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_OLAP_INDEX_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_OLAP_OLAP_META_H
#define DORIS_BE_SRC_OLAP_OLAP_OLAP_META_H
#pragma once
#include <functional>
#include <map>
@ -56,4 +55,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_OLAP_OLAP_META_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_OUT_STREAM_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_OUT_STREAM_H
#pragma once
#include "olap/byte_buffer.h"
#include "olap/compress.h"
@ -169,4 +168,4 @@ protected:
*/
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_OUT_STREAM_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_PUSH_HANDLER_H
#define DORIS_BE_SRC_OLAP_PUSH_HANDLER_H
#pragma once
#include <map>
#include <string>
@ -220,4 +219,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_PUSH_HANDLER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_READER_H
#define DORIS_BE_SRC_OLAP_READER_H
#pragma once
#include <gen_cpp/PaloInternalService_types.h>
#include <thrift/protocol/TDebugProtocol.h>
@ -231,4 +230,3 @@ protected:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_READER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_ROW_BLOCK_H
#define DORIS_BE_SRC_OLAP_ROW_BLOCK_H
#pragma once
#include <exception>
#include <iterator>
@ -142,4 +141,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_ROW_BLOCK_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_ROW_CURSOR_H
#define DORIS_BE_SRC_OLAP_ROW_CURSOR_H
#pragma once
#include <string>
#include <vector>
@ -172,4 +171,3 @@ private:
};
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_ROW_CURSOR_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_SCHEMA_CHANGE_H
#define DORIS_BE_SRC_OLAP_SCHEMA_CHANGE_H
#pragma once
#include <deque>
#include <functional>
@ -247,4 +246,3 @@ private:
using RowBlockDeleter = std::function<void(RowBlock*)>;
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_SCHEMA_CHANGE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_SERIALIZE_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_SERIALIZE_H
#pragma once
#include "olap/byte_buffer.h"
#include "olap/olap_define.h"
@ -184,4 +183,3 @@ inline bool is_safe_subtract(int64_t left, int64_t right) {
} // namespace ser
} // namespace doris
#endif

View File

@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef DORIS_BE_SRC_OLAP_SKIPLIST_H
#define DORIS_BE_SRC_OLAP_SKIPLIST_H
#pragma once
// Thread safety
// -------------
@ -462,4 +461,3 @@ bool SkipList<Key, Comparator>::Find(const Key& key, Hint* hint) const {
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_SKIPLIST_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_SNAPSHOT_MANAGER_H
#define DORIS_BE_SRC_OLAP_SNAPSHOT_MANAGER_H
#pragma once
#include <condition_variable>
#include <ctime>
@ -104,4 +103,3 @@ private:
} // namespace doris
#endif

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_STORAGE_ENGINE_H
#define DORIS_BE_SRC_OLAP_STORAGE_ENGINE_H
#pragma once
#include <pthread.h>
#include <rapidjson/document.h>
@ -396,4 +395,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_STORAGE_ENGINE_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_INDEX_COMMON_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_INDEX_COMMON_H
#pragma once
#include <functional>
@ -94,4 +93,3 @@ protected:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_INDEX_COMMON_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_INDEX_READER_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_INDEX_READER_H
#pragma once
#include "olap/olap_define.h"
#include "olap/stream_index_common.h"
@ -90,4 +89,4 @@ private:
};
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_INDEX_READER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_INDEX_WRITER_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_INDEX_WRITER_H
#pragma once
#include <vector>
@ -77,4 +76,4 @@ protected:
};
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_INDEX_WRITER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_NAME_H
#define DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_NAME_H
#pragma once
#include <gen_cpp/column_data_file.pb.h>
@ -43,4 +42,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_COLUMN_FILE_STREAM_NAME_H

View File

@ -15,8 +15,8 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_TABLET_H
#define DORIS_BE_SRC_OLAP_TABLET_H
#pragma once
#include <functional>
#include <memory>
#include <set>
@ -454,4 +454,3 @@ inline size_t Tablet::row_size() const {
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_TABLET_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_TABLET_MANAGER_H
#define DORIS_BE_SRC_OLAP_TABLET_MANAGER_H
#pragma once
#include <atomic>
#include <list>
@ -224,4 +223,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_TABLET_MANAGER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_TABLET_META_H
#define DORIS_BE_SRC_OLAP_TABLET_META_H
#pragma once
#include <mutex>
#include <shared_mutex>
@ -332,4 +331,3 @@ bool operator!=(const TabletMeta& a, const TabletMeta& b);
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_OLAP_TABLET_META_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_TABLET_META_MANAGER_H
#define DORIS_BE_SRC_OLAP_TABLET_META_MANAGER_H
#pragma once
#include <string>
@ -58,4 +57,3 @@ public:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_TABLET_META_MANAGER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_TABLET_SCHEMA_H
#define DORIS_BE_SRC_OLAP_TABLET_SCHEMA_H
#pragma once
#include <vector>
@ -183,4 +182,3 @@ bool operator!=(const TabletSchema& a, const TabletSchema& b);
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_TABLET_SCHEMA_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_TUPLE_READER_H
#define DORIS_BE_SRC_OLAP_TUPLE_READER_H
#pragma once
#include <gen_cpp/PaloInternalService_types.h>
#include <thrift/protocol/TDebugProtocol.h>
@ -90,4 +89,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_TUPLE_READER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_TXN_MANAGER_H
#define DORIS_BE_SRC_OLAP_TXN_MANAGER_H
#pragma once
#include <pthread.h>
#include <rapidjson/document.h>
@ -210,4 +209,4 @@ inline std::mutex& TxnManager::_get_txn_lock(TTransactionId transactionId) {
}
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_TXN_MANAGER_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_TYPES_H
#define DORIS_BE_SRC_OLAP_TYPES_H
#pragma once
#include <math.h>
#include <stdio.h>
@ -1282,4 +1281,3 @@ inline const TypeInfo* get_collection_type_info<OLAP_FIELD_TYPE_ARRAY>() {
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_TYPES_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_UTILS_H
#define DORIS_BE_SRC_OLAP_UTILS_H
#pragma once
#include <fcntl.h>
#include <pthread.h>
@ -316,4 +315,3 @@ bool valid_bool(const std::string& value_str);
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_UTILS_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_VERSION_GRAPH_H
#define DORIS_BE_SRC_OLAP_VERSION_GRAPH_H
#pragma once
#include <rapidjson/document.h>
#include <rapidjson/prettywriter.h>
@ -214,4 +213,3 @@ private:
} // namespace doris
#endif // DORIS_BE_SRC_OLAP_OLAP_VERSION_GRAPH_H

View File

@ -15,8 +15,7 @@
// specific language governing permissions and limitations
// under the License.
#ifndef DORIS_BE_SRC_OLAP_WRAPPER_FIELD_H
#define DORIS_BE_SRC_OLAP_WRAPPER_FIELD_H
#pragma once
#include "olap/field.h"
#include "olap/olap_define.h"
@ -117,4 +116,3 @@ private:
} // namespace doris
#endif