diff --git a/deps/easy/src/include/easy_atomic.h b/deps/easy/src/include/easy_atomic.h index 2352f0e32..848f23bf3 100644 --- a/deps/easy/src/include/easy_atomic.h +++ b/deps/easy/src/include/easy_atomic.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_LOCK_ATOMIC_H_ #define EASY_LOCK_ATOMIC_H_ diff --git a/deps/easy/src/include/easy_define.h b/deps/easy/src/include/easy_define.h index 6691116f3..d56dc2596 100644 --- a/deps/easy/src/include/easy_define.h +++ b/deps/easy/src/include/easy_define.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_DEFINE_H_ #define EASY_DEFINE_H_ diff --git a/deps/easy/src/include/easy_list.h b/deps/easy/src/include/easy_list.h index 419006c16..ec73a83d5 100644 --- a/deps/easy/src/include/easy_list.h +++ b/deps/easy/src/include/easy_list.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_LIST_H_ #define EASY_LIST_H_ diff --git a/deps/easy/src/io/easy_baseth_pool.c b/deps/easy/src/io/easy_baseth_pool.c index eab7cd19b..5b6d89074 100644 --- a/deps/easy/src/io/easy_baseth_pool.c +++ b/deps/easy/src/io/easy_baseth_pool.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include #include #include diff --git a/deps/easy/src/io/easy_baseth_pool.h b/deps/easy/src/io/easy_baseth_pool.h index 679d96b59..588f3bc11 100644 --- a/deps/easy/src/io/easy_baseth_pool.h +++ b/deps/easy/src/io/easy_baseth_pool.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_BASETH_POOL_H #define EASY_BASETH_POOL_H diff --git a/deps/easy/src/io/easy_client.c b/deps/easy/src/io/easy_client.c index 5e65e1248..8bc43e2e3 100644 --- a/deps/easy/src/io/easy_client.c +++ b/deps/easy/src/io/easy_client.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_io.h" #include "io/easy_client.h" #include "io/easy_connection.h" diff --git a/deps/easy/src/io/easy_client.h b/deps/easy/src/io/easy_client.h index 323dd0ee3..767089607 100644 --- a/deps/easy/src/io/easy_client.h +++ b/deps/easy/src/io/easy_client.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_CLIENT_H_ #define EASY_CLIENT_H_ diff --git a/deps/easy/src/io/easy_connection.c b/deps/easy/src/io/easy_connection.c index 6783c55c0..b4ed51bc4 100644 --- a/deps/easy/src/io/easy_connection.c +++ b/deps/easy/src/io/easy_connection.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_string.h" #include #include diff --git a/deps/easy/src/io/easy_connection.h b/deps/easy/src/io/easy_connection.h index 442051dcd..170d3db73 100644 --- a/deps/easy/src/io/easy_connection.h +++ b/deps/easy/src/io/easy_connection.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_CONNECTION_H_ #define EASY_CONNECTION_H_ diff --git a/deps/easy/src/io/easy_file.c b/deps/easy/src/io/easy_file.c index e37644d04..d89322a9d 100644 --- a/deps/easy/src/io/easy_file.c +++ b/deps/easy/src/io/easy_file.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #undef _XOPEN_SOURCE #define _XOPEN_SOURCE 600 #include diff --git a/deps/easy/src/io/easy_file.h b/deps/easy/src/io/easy_file.h index 01b03276b..03537672d 100644 --- a/deps/easy/src/io/easy_file.h +++ b/deps/easy/src/io/easy_file.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_FILE_H_ #define EASY_FILE_H_ diff --git a/deps/easy/src/io/easy_io.c b/deps/easy/src/io/easy_io.c index c21e3d313..bd316ecf4 100644 --- a/deps/easy/src/io/easy_io.c +++ b/deps/easy/src/io/easy_io.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_io.h" #include "io/easy_baseth_pool.h" #include "io/easy_connection.h" diff --git a/deps/easy/src/io/easy_io.h b/deps/easy/src/io/easy_io.h index 7afb23b40..bd0d29f9b 100644 --- a/deps/easy/src/io/easy_io.h +++ b/deps/easy/src/io/easy_io.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_IO_H_ #define EASY_IO_H_ diff --git a/deps/easy/src/io/easy_io_struct.h b/deps/easy/src/io/easy_io_struct.h index 8e738f23b..66208625d 100644 --- a/deps/easy/src/io/easy_io_struct.h +++ b/deps/easy/src/io/easy_io_struct.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_IO_STRUCT_H_ #define EASY_IO_STRUCT_H_ diff --git a/deps/easy/src/io/easy_log.c b/deps/easy/src/io/easy_log.c index d25795425..22dbaf824 100644 --- a/deps/easy/src/io/easy_log.c +++ b/deps/easy/src/io/easy_log.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_log.h" #include "util/easy_time.h" #include diff --git a/deps/easy/src/io/easy_log.h b/deps/easy/src/io/easy_log.h index 3c5ea045e..c94e9acf8 100644 --- a/deps/easy/src/io/easy_log.h +++ b/deps/easy/src/io/easy_log.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_LOG_H_ #define EASY_LOG_H_ diff --git a/deps/easy/src/io/easy_maccept.c b/deps/easy/src/io/easy_maccept.c index 6107f702b..43f5ae091 100644 --- a/deps/easy/src/io/easy_maccept.c +++ b/deps/easy/src/io/easy_maccept.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_maccept.h" #include #include diff --git a/deps/easy/src/io/easy_maccept.h b/deps/easy/src/io/easy_maccept.h index d0c0b1c3c..9035c5fe1 100644 --- a/deps/easy/src/io/easy_maccept.h +++ b/deps/easy/src/io/easy_maccept.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef __EASY_MACCEPT_H__ #define __EASY_MACCEPT_H__ diff --git a/deps/easy/src/io/easy_message.c b/deps/easy/src/io/easy_message.c index 6c0b184c9..757402490 100644 --- a/deps/easy/src/io/easy_message.c +++ b/deps/easy/src/io/easy_message.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_io.h" #include "io/easy_message.h" #include "io/easy_connection.h" diff --git a/deps/easy/src/io/easy_message.h b/deps/easy/src/io/easy_message.h index d8242db0f..50a4a2043 100644 --- a/deps/easy/src/io/easy_message.h +++ b/deps/easy/src/io/easy_message.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_MESSAGE_H_ #define EASY_MESSAGE_H_ diff --git a/deps/easy/src/io/easy_negotiation.c b/deps/easy/src/io/easy_negotiation.c index 35cb86941..1c0221b33 100644 --- a/deps/easy/src/io/easy_negotiation.c +++ b/deps/easy/src/io/easy_negotiation.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_negotiation.h" #include "io/easy_log.h" #include "io/easy_socket.h" diff --git a/deps/easy/src/io/easy_negotiation.h b/deps/easy/src/io/easy_negotiation.h index 573ac55e2..08ca17726 100644 --- a/deps/easy/src/io/easy_negotiation.h +++ b/deps/easy/src/io/easy_negotiation.h @@ -1,70 +1,58 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ +#ifndef EASY_NEGOTIATION_H_ +#define EASY_NEGOTIATION_H_ -#ifndef EASY_NEGOTIATION_H_ -#define EASY_NEGOTIATION_H_ - -#include "easy_define.h" -#include "io/easy_io_struct.h" - -/* -* easy negotiation packet format -PACKET HEADER: -+------------------------------------------------------------------------+ -| negotiation packet header magic(8B) | msg body len (2B) -+------------------------------------------------------------------------+ - -PACKET MSG BODY: -+------------------------------------------------------------------------+ -| io thread corresponding eio magic(8B) | io thread index (1B) -+------------------------------------------------------------------------+ -*/ - - -EASY_CPP_START - -#define EASY_NEGOTIATION_PACKET_HEADER_MAGIC (0x1234567877668833) - -#pragma pack(1) -typedef struct easy_negotiation_msg_t easy_negotiation_msg_t; -typedef struct easy_negotiation_msg_header_t easy_negotiation_msg_header_t; -typedef struct easy_negotiation_msg_body_t easy_negotiation_msg_body_t; - - -struct easy_negotiation_msg_header_t { - uint64_t header_magic; - uint16_t msg_body_len; -}; - -struct easy_negotiation_msg_body_t { - uint64_t eio_magic; - uint8_t io_thread_index; -}; - -struct easy_negotiation_msg_t { - easy_negotiation_msg_header_t msg_header; - easy_negotiation_msg_body_t msg_body; -}; - -#pragma pack() - -#define EASY_NEGOTIATION_PACKET_LEN (sizeof(easy_negotiation_msg_t)) - -int net_send_negotiate_message(uint8_t negotiation_enable, int fd, uint64_t magic, - int8_t index, uint32_t *conn_has_error); -void net_consume_negotiation_msg(int fd, uint64_t magic); -int easy_send_negotiate_message(easy_connection_t *c); -void easy_consume_negotiation_msg(int fd, easy_io_t *eio); - -EASY_CPP_END - -#endif +#include "easy_define.h" +#include "io/easy_io_struct.h" + +/* +* easy negotiation packet format +PACKET HEADER: ++------------------------------------------------------------------------+ +| negotiation packet header magic(8B) | msg body len (2B) ++------------------------------------------------------------------------+ + +PACKET MSG BODY: ++------------------------------------------------------------------------+ +| io thread corresponding eio magic(8B) | io thread index (1B) ++------------------------------------------------------------------------+ +*/ + + +EASY_CPP_START + +#define EASY_NEGOTIATION_PACKET_HEADER_MAGIC (0x1234567877668833) + +#pragma pack(1) +typedef struct easy_negotiation_msg_t easy_negotiation_msg_t; +typedef struct easy_negotiation_msg_header_t easy_negotiation_msg_header_t; +typedef struct easy_negotiation_msg_body_t easy_negotiation_msg_body_t; + + +struct easy_negotiation_msg_header_t { + uint64_t header_magic; + uint16_t msg_body_len; +}; + +struct easy_negotiation_msg_body_t { + uint64_t eio_magic; + uint8_t io_thread_index; +}; + +struct easy_negotiation_msg_t { + easy_negotiation_msg_header_t msg_header; + easy_negotiation_msg_body_t msg_body; +}; + +#pragma pack() + +#define EASY_NEGOTIATION_PACKET_LEN (sizeof(easy_negotiation_msg_t)) + +int net_send_negotiate_message(uint8_t negotiation_enable, int fd, uint64_t magic, + int8_t index, uint32_t *conn_has_error); +void net_consume_negotiation_msg(int fd, uint64_t magic); +int easy_send_negotiate_message(easy_connection_t *c); +void easy_consume_negotiation_msg(int fd, easy_io_t *eio); + +EASY_CPP_END + +#endif diff --git a/deps/easy/src/io/easy_request.c b/deps/easy/src/io/easy_request.c index 9187bf4f2..e20f5d276 100644 --- a/deps/easy/src/io/easy_request.c +++ b/deps/easy/src/io/easy_request.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_io.h" #include "io/easy_request.h" #include "io/easy_message.h" diff --git a/deps/easy/src/io/easy_request.h b/deps/easy/src/io/easy_request.h index 38f6004cc..410205d45 100644 --- a/deps/easy/src/io/easy_request.h +++ b/deps/easy/src/io/easy_request.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_REQUEST_H_ #define EASY_REQUEST_H_ diff --git a/deps/easy/src/io/easy_socket.c b/deps/easy/src/io/easy_socket.c index 5d3ecc568..db9574b54 100644 --- a/deps/easy/src/io/easy_socket.c +++ b/deps/easy/src/io/easy_socket.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_socket.h" #include "io/easy_io.h" #include "util/easy_inet.h" diff --git a/deps/easy/src/io/easy_socket.h b/deps/easy/src/io/easy_socket.h index b3e8d425a..1b955e6b5 100644 --- a/deps/easy/src/io/easy_socket.h +++ b/deps/easy/src/io/easy_socket.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_SOCKET_H_ #define EASY_SOCKET_H_ diff --git a/deps/easy/src/io/easy_ssl.c b/deps/easy/src/io/easy_ssl.c index 0378676cb..267d60fcc 100644 --- a/deps/easy/src/io/easy_ssl.c +++ b/deps/easy/src/io/easy_ssl.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include #include #include diff --git a/deps/easy/src/io/easy_ssl.h b/deps/easy/src/io/easy_ssl.h index be7693f33..d9a9ad473 100644 --- a/deps/easy/src/io/easy_ssl.h +++ b/deps/easy/src/io/easy_ssl.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_SSL_H_ #define EASY_SSL_H_ diff --git a/deps/easy/src/io/easy_summary.c b/deps/easy/src/io/easy_summary.c index bbb5c5419..02db00444 100644 --- a/deps/easy/src/io/easy_summary.c +++ b/deps/easy/src/io/easy_summary.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_summary.h" #include "packet/http/easy_http_handler.h" #include "util/easy_time.h" diff --git a/deps/easy/src/io/easy_summary.h b/deps/easy/src/io/easy_summary.h index 5424be6df..73c068689 100644 --- a/deps/easy/src/io/easy_summary.h +++ b/deps/easy/src/io/easy_summary.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_SUMMARY_H #define EASY_SUMMARY_H diff --git a/deps/easy/src/io/ev_wrap.h b/deps/easy/src/io/ev_wrap.h index aacaeb835..6af1101ab 100644 --- a/deps/easy/src/io/ev_wrap.h +++ b/deps/easy/src/io/ev_wrap.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EV_WRAP_H #define EV_WRAP_H #define now_floor ((loop)->now_floor) diff --git a/deps/easy/src/memory/easy_mem_page.c b/deps/easy/src/memory/easy_mem_page.c index a691b1b11..ab4018a00 100644 --- a/deps/easy/src/memory/easy_mem_page.c +++ b/deps/easy/src/memory/easy_mem_page.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "memory/easy_mem_page.h" #include diff --git a/deps/easy/src/memory/easy_mem_page.h b/deps/easy/src/memory/easy_mem_page.h index b8732a926..f89df4fef 100644 --- a/deps/easy/src/memory/easy_mem_page.h +++ b/deps/easy/src/memory/easy_mem_page.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_MEM_PAGE_H_ #define EASY_MEM_PAGE_H_ diff --git a/deps/easy/src/memory/easy_mem_pool.c b/deps/easy/src/memory/easy_mem_pool.c index 1fffd7f10..db351c792 100644 --- a/deps/easy/src/memory/easy_mem_pool.c +++ b/deps/easy/src/memory/easy_mem_pool.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include #include #include diff --git a/deps/easy/src/memory/easy_mem_pool.h b/deps/easy/src/memory/easy_mem_pool.h index c7fa82e84..b32ed8ab8 100644 --- a/deps/easy/src/memory/easy_mem_pool.h +++ b/deps/easy/src/memory/easy_mem_pool.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_MEMPOOL_H_ #define EASY_MEMPOOL_H_ diff --git a/deps/easy/src/memory/easy_mem_slab.c b/deps/easy/src/memory/easy_mem_slab.c index a5d31662c..2c0c6af8f 100644 --- a/deps/easy/src/memory/easy_mem_slab.c +++ b/deps/easy/src/memory/easy_mem_slab.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "memory/easy_mem_slab.h" #define EASY_MEM_POS_END (((uint16_t)(~0U))-0) diff --git a/deps/easy/src/memory/easy_mem_slab.h b/deps/easy/src/memory/easy_mem_slab.h index c9e675904..303bc65e4 100644 --- a/deps/easy/src/memory/easy_mem_slab.h +++ b/deps/easy/src/memory/easy_mem_slab.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_MEM_SLAB_H_ #define EASY_MEM_SLAB_H_ diff --git a/deps/easy/src/packet/easy_simple_handler.h b/deps/easy/src/packet/easy_simple_handler.h index 6aab17afb..82a5c191c 100644 --- a/deps/easy/src/packet/easy_simple_handler.h +++ b/deps/easy/src/packet/easy_simple_handler.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_SIMPLE_HANDLER_H_ #define EASY_SIMPLE_HANDLER_H_ diff --git a/deps/easy/src/packet/http/easy_http_handler.c b/deps/easy/src/packet/http/easy_http_handler.c index 66d5bba47..25cb38ec0 100644 --- a/deps/easy/src/packet/http/easy_http_handler.c +++ b/deps/easy/src/packet/http/easy_http_handler.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include #include "io/easy_connection.h" #include "packet/http/easy_http_handler.h" diff --git a/deps/easy/src/packet/http/easy_http_handler.h b/deps/easy/src/packet/http/easy_http_handler.h index 5462ec0a3..d5ede8b7d 100644 --- a/deps/easy/src/packet/http/easy_http_handler.h +++ b/deps/easy/src/packet/http/easy_http_handler.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_HTTP_HANDLER_H_ #define EASY_HTTP_HANDLER_H_ diff --git a/deps/easy/src/thread/easy_uthread.c b/deps/easy/src/thread/easy_uthread.c index 4659d10a9..3728204fb 100644 --- a/deps/easy/src/thread/easy_uthread.c +++ b/deps/easy/src/thread/easy_uthread.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "easy_atomic.h" #include "thread/easy_uthread.h" #include diff --git a/deps/easy/src/thread/easy_uthread.h b/deps/easy/src/thread/easy_uthread.h index b2703226f..5c6647681 100644 --- a/deps/easy/src/thread/easy_uthread.h +++ b/deps/easy/src/thread/easy_uthread.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_UTHREAD_H #define EASY_UTHREAD_H diff --git a/deps/easy/src/util/easy_array.c b/deps/easy/src/util/easy_array.c index 8f264f344..baa3f6cea 100644 --- a/deps/easy/src/util/easy_array.c +++ b/deps/easy/src/util/easy_array.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_array.h" easy_array_t *easy_array_create(int object_size) diff --git a/deps/easy/src/util/easy_array.h b/deps/easy/src/util/easy_array.h index 11e38fbb4..99f28e78c 100644 --- a/deps/easy/src/util/easy_array.h +++ b/deps/easy/src/util/easy_array.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_ARRAY_H_ #define EASY_ARRAY_H_ diff --git a/deps/easy/src/util/easy_buf.c b/deps/easy/src/util/easy_buf.c index d5ca57279..177eb91b8 100644 --- a/deps/easy/src/util/easy_buf.c +++ b/deps/easy/src/util/easy_buf.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include #include #include diff --git a/deps/easy/src/util/easy_buf.h b/deps/easy/src/util/easy_buf.h index 406f552ff..cfba8e350 100644 --- a/deps/easy/src/util/easy_buf.h +++ b/deps/easy/src/util/easy_buf.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_BUF_H_ #define EASY_BUF_H_ diff --git a/deps/easy/src/util/easy_hash.c b/deps/easy/src/util/easy_hash.c index 5225ec408..16e49f321 100644 --- a/deps/easy/src/util/easy_hash.c +++ b/deps/easy/src/util/easy_hash.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_hash.h" #define EASY_KEY_MAX_SIZE 65 diff --git a/deps/easy/src/util/easy_hash.h b/deps/easy/src/util/easy_hash.h index 7ccc053b2..34848ad98 100644 --- a/deps/easy/src/util/easy_hash.h +++ b/deps/easy/src/util/easy_hash.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_HASH_H_ #define EASY_HASH_H_ diff --git a/deps/easy/src/util/easy_inet.c b/deps/easy/src/util/easy_inet.c index 13f318cb6..b0d90609b 100644 --- a/deps/easy/src/util/easy_inet.c +++ b/deps/easy/src/util/easy_inet.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_inet.h" #include "util/easy_string.h" #include diff --git a/deps/easy/src/util/easy_inet.h b/deps/easy/src/util/easy_inet.h index 12a3f08ef..ea0847b89 100644 --- a/deps/easy/src/util/easy_inet.h +++ b/deps/easy/src/util/easy_inet.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_INET_H_ #define EASY_INET_H_ diff --git a/deps/easy/src/util/easy_mod_stat.c b/deps/easy/src/util/easy_mod_stat.c index b249be183..127554820 100644 --- a/deps/easy/src/util/easy_mod_stat.c +++ b/deps/easy/src/util/easy_mod_stat.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_mod_stat.h" #include diff --git a/deps/easy/src/util/easy_mod_stat.h b/deps/easy/src/util/easy_mod_stat.h index a4c652656..7fd7a545b 100644 --- a/deps/easy/src/util/easy_mod_stat.h +++ b/deps/easy/src/util/easy_mod_stat.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef __EASY_MOD_STAT__ #define __EASY_MOD_STAT__ diff --git a/deps/easy/src/util/easy_pool.c b/deps/easy/src/util/easy_pool.c index 420e67667..7facd5ca3 100644 --- a/deps/easy/src/util/easy_pool.c +++ b/deps/easy/src/util/easy_pool.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_pool.h" #include "io/easy_log.h" #include "util/easy_mod_stat.h" diff --git a/deps/easy/src/util/easy_pool.h b/deps/easy/src/util/easy_pool.h index 319e27711..57cb8d8ce 100644 --- a/deps/easy/src/util/easy_pool.h +++ b/deps/easy/src/util/easy_pool.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_POOL_H_ #define EASY_POOL_H_ diff --git a/deps/easy/src/util/easy_string.c b/deps/easy/src/util/easy_string.c index 5029bfc08..427b54ee7 100644 --- a/deps/easy/src/util/easy_string.c +++ b/deps/easy/src/util/easy_string.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_string.h" static char *easy_sprintf_num(char *buf, char *last, uint64_t ui64, char zero, int hexadecimal, int width, int sign); diff --git a/deps/easy/src/util/easy_string.h b/deps/easy/src/util/easy_string.h index b5d2ec784..1c014e594 100644 --- a/deps/easy/src/util/easy_string.h +++ b/deps/easy/src/util/easy_string.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_STRING_H_ #define EASY_STRING_H_ diff --git a/deps/easy/src/util/easy_time.c b/deps/easy/src/util/easy_time.c index 5ee15ab8a..89ab1d548 100644 --- a/deps/easy/src/util/easy_time.c +++ b/deps/easy/src/util/easy_time.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_time.h" #include #if defined(__x86_64__) diff --git a/deps/easy/src/util/easy_time.h b/deps/easy/src/util/easy_time.h index 70df5d2c3..23fb18f74 100644 --- a/deps/easy/src/util/easy_time.h +++ b/deps/easy/src/util/easy_time.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_TIME_H_ #define EASY_TIME_H_ diff --git a/deps/easy/src/util/easy_util.c b/deps/easy/src/util/easy_util.c index 502c3ca38..6b10877c2 100644 --- a/deps/easy/src/util/easy_util.c +++ b/deps/easy/src/util/easy_util.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include #include #include "util/easy_util.h" diff --git a/deps/easy/src/util/easy_util.h b/deps/easy/src/util/easy_util.h index 8cacabfa4..ca40ccbd0 100644 --- a/deps/easy/src/util/easy_util.h +++ b/deps/easy/src/util/easy_util.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_UTIL_H_ #define EASY_UTIL_H_ diff --git a/deps/easy/test/easy_test.h b/deps/easy/test/easy_test.h index 63e776740..56ec03231 100644 --- a/deps/easy/test/easy_test.h +++ b/deps/easy/test/easy_test.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef EASY_TEST_H_ #define EASY_TEST_H_ diff --git a/deps/easy/test/include/easy_atomic_test.c b/deps/easy/test/include/easy_atomic_test.c index 5a71fc933..055fb7b34 100644 --- a/deps/easy/test/include/easy_atomic_test.c +++ b/deps/easy/test/include/easy_atomic_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "easy_atomic.h" #include #include diff --git a/deps/easy/test/include/easy_list_test.c b/deps/easy/test/include/easy_list_test.c index e4e1f4172..8e45fce68 100644 --- a/deps/easy/test/include/easy_list_test.c +++ b/deps/easy/test/include/easy_list_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "easy_list.h" #include diff --git a/deps/easy/test/include/include_test.c b/deps/easy/test/include/include_test.c index b9b65f811..3c2280d95 100644 --- a/deps/easy/test/include/include_test.c +++ b/deps/easy/test/include/include_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include RUN_TEST_MAIN diff --git a/deps/easy/test/io/easy_baseth_pool_test.c b/deps/easy/test/io/easy_baseth_pool_test.c index 5cf80d08d..7bdb14cd1 100644 --- a/deps/easy/test/io/easy_baseth_pool_test.c +++ b/deps/easy/test/io/easy_baseth_pool_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_baseth_pool.h" #include "io/easy_io.h" #include "packet/easy_simple_handler.h" diff --git a/deps/easy/test/io/easy_client_test.c b/deps/easy/test/io/easy_client_test.c index f39c56f89..18de36987 100644 --- a/deps/easy/test/io/easy_client_test.c +++ b/deps/easy/test/io/easy_client_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_client.h" #include "io/easy_io.h" #include diff --git a/deps/easy/test/io/easy_connection_test.c b/deps/easy/test/io/easy_connection_test.c index 95c35a9f9..a69c6de70 100644 --- a/deps/easy/test/io/easy_connection_test.c +++ b/deps/easy/test/io/easy_connection_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_io.h" #include "packet/easy_simple_handler.h" #include diff --git a/deps/easy/test/io/easy_file_test.c b/deps/easy/test/io/easy_file_test.c index 603e776ce..29688ae9d 100644 --- a/deps/easy/test/io/easy_file_test.c +++ b/deps/easy/test/io/easy_file_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_file.h" #include "io/easy_io.h" #include diff --git a/deps/easy/test/io/easy_io_test.c b/deps/easy/test/io/easy_io_test.c index 5565447af..3d346b809 100644 --- a/deps/easy/test/io/easy_io_test.c +++ b/deps/easy/test/io/easy_io_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #define EASY_MULTIPLICITY #include "io/easy_io.h" #include "packet/easy_simple_handler.h" diff --git a/deps/easy/test/io/easy_log_test.c b/deps/easy/test/io/easy_log_test.c index 8c106711e..9fb9e0529 100644 --- a/deps/easy/test/io/easy_log_test.c +++ b/deps/easy/test/io/easy_log_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_log.h" #include "io/easy_io.h" #include diff --git a/deps/easy/test/io/easy_request_test.c b/deps/easy/test/io/easy_request_test.c index 5ad784394..ebb6cab06 100644 --- a/deps/easy/test/io/easy_request_test.c +++ b/deps/easy/test/io/easy_request_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_request.h" #include "io/easy_io.h" #include diff --git a/deps/easy/test/io/io_test.c b/deps/easy/test/io/io_test.c index 32c26db00..9bfcd06cd 100644 --- a/deps/easy/test/io/io_test.c +++ b/deps/easy/test/io/io_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include /** diff --git a/deps/easy/test/memory/easy_mem_page_test.c b/deps/easy/test/memory/easy_mem_page_test.c index 8c4a67181..a23854029 100644 --- a/deps/easy/test/memory/easy_mem_page_test.c +++ b/deps/easy/test/memory/easy_mem_page_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "memory/easy_mem_page.h" #include diff --git a/deps/easy/test/memory/easy_mem_pool_test.c b/deps/easy/test/memory/easy_mem_pool_test.c index 723f6263f..d818a4c0a 100644 --- a/deps/easy/test/memory/easy_mem_pool_test.c +++ b/deps/easy/test/memory/easy_mem_pool_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include #include "memory/easy_mem_pool.h" #include diff --git a/deps/easy/test/memory/easy_mem_slab_test.c b/deps/easy/test/memory/easy_mem_slab_test.c index 784487d47..e925dc293 100644 --- a/deps/easy/test/memory/easy_mem_slab_test.c +++ b/deps/easy/test/memory/easy_mem_slab_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "memory/easy_mem_slab.h" #include #include diff --git a/deps/easy/test/memory/memory_test.c b/deps/easy/test/memory/memory_test.c index 5be9252e2..84272b5be 100644 --- a/deps/easy/test/memory/memory_test.c +++ b/deps/easy/test/memory/memory_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include /** diff --git a/deps/easy/test/packet/easy_http_handler_test.c b/deps/easy/test/packet/easy_http_handler_test.c index 62a45319a..8e2f6c033 100644 --- a/deps/easy/test/packet/easy_http_handler_test.c +++ b/deps/easy/test/packet/easy_http_handler_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "io/easy_io.h" #include #include "util/easy_time.h" diff --git a/deps/easy/test/packet/packet_test.c b/deps/easy/test/packet/packet_test.c index 421233741..1be1b463a 100644 --- a/deps/easy/test/packet/packet_test.c +++ b/deps/easy/test/packet/packet_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include /** diff --git a/deps/easy/test/thread/easy_uthread_test.c b/deps/easy/test/thread/easy_uthread_test.c index de696adde..cfdc16ecc 100644 --- a/deps/easy/test/thread/easy_uthread_test.c +++ b/deps/easy/test/thread/easy_uthread_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "thread/easy_uthread.h" #include diff --git a/deps/easy/test/thread/thread_test.c b/deps/easy/test/thread/thread_test.c index b9b65f811..3c2280d95 100644 --- a/deps/easy/test/thread/thread_test.c +++ b/deps/easy/test/thread/thread_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include RUN_TEST_MAIN diff --git a/deps/easy/test/util/easy_buf_test.c b/deps/easy/test/util/easy_buf_test.c index ea649f6db..bffc0e12d 100644 --- a/deps/easy/test/util/easy_buf_test.c +++ b/deps/easy/test/util/easy_buf_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_buf.h" #include diff --git a/deps/easy/test/util/easy_hash_test.c b/deps/easy/test/util/easy_hash_test.c index 03ad23e28..421a53935 100644 --- a/deps/easy/test/util/easy_hash_test.c +++ b/deps/easy/test/util/easy_hash_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_hash.h" #include "util/easy_buf.h" #include diff --git a/deps/easy/test/util/easy_inet_test.c b/deps/easy/test/util/easy_inet_test.c index 2bd2cbdab..25404a74f 100644 --- a/deps/easy/test/util/easy_inet_test.c +++ b/deps/easy/test/util/easy_inet_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_inet.h" #include diff --git a/deps/easy/test/util/easy_list_test.c b/deps/easy/test/util/easy_list_test.c index 6406a4289..ee8884c84 100644 --- a/deps/easy/test/util/easy_list_test.c +++ b/deps/easy/test/util/easy_list_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "easy_list.h" #include diff --git a/deps/easy/test/util/easy_pool_test.c b/deps/easy/test/util/easy_pool_test.c index 8ad68e6be..84afc7abe 100644 --- a/deps/easy/test/util/easy_pool_test.c +++ b/deps/easy/test/util/easy_pool_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_pool.h" #include diff --git a/deps/easy/test/util/easy_string_test.c b/deps/easy/test/util/easy_string_test.c index 275e913bb..1f2a6fecd 100644 --- a/deps/easy/test/util/easy_string_test.c +++ b/deps/easy/test/util/easy_string_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_string.h" #include diff --git a/deps/easy/test/util/easy_time_test.c b/deps/easy/test/util/easy_time_test.c index 8055b2b5a..f2225e6d5 100644 --- a/deps/easy/test/util/easy_time_test.c +++ b/deps/easy/test/util/easy_time_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "util/easy_time.h" #include diff --git a/deps/easy/test/util/util_test.c b/deps/easy/test/util/util_test.c index 5be9252e2..84272b5be 100644 --- a/deps/easy/test/util/util_test.c +++ b/deps/easy/test/util/util_test.c @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include /** diff --git a/deps/oblib/src/common/meta_programming/ob_meta_compare.h b/deps/oblib/src/common/meta_programming/ob_meta_compare.h index 51a4885f2..f672352ea 100644 --- a/deps/oblib/src/common/meta_programming/ob_meta_compare.h +++ b/deps/oblib/src/common/meta_programming/ob_meta_compare.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef DEPS_OBLIB_SRC_COMMON_META_PROGRAMMING_OB_META_COMPARE_H #define DEPS_OBLIB_SRC_COMMON_META_PROGRAMMING_OB_META_COMPARE_H diff --git a/deps/oblib/src/common/meta_programming/ob_meta_copy.h b/deps/oblib/src/common/meta_programming/ob_meta_copy.h index 3a0c8af2e..e5e56a40d 100644 --- a/deps/oblib/src/common/meta_programming/ob_meta_copy.h +++ b/deps/oblib/src/common/meta_programming/ob_meta_copy.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef DEPS_OBLIB_SRC_COMMON_META_PROGRAMMING_OB_META_COPY_H #define DEPS_OBLIB_SRC_COMMON_META_PROGRAMMING_OB_META_COPY_H #include "ob_meta_define.h" diff --git a/deps/oblib/src/common/meta_programming/ob_meta_define.h b/deps/oblib/src/common/meta_programming/ob_meta_define.h index 5f570321d..baf7bb3a0 100644 --- a/deps/oblib/src/common/meta_programming/ob_meta_define.h +++ b/deps/oblib/src/common/meta_programming/ob_meta_define.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SRC_COMMON_META_PROGRAMMING_OB_META_DEFINE_H #define SRC_COMMON_META_PROGRAMMING_OB_META_DEFINE_H #include "lib/allocator/ob_allocator.h" diff --git a/deps/oblib/src/common/meta_programming/ob_meta_serialization.h b/deps/oblib/src/common/meta_programming/ob_meta_serialization.h index 78c8b935a..b8ee0f2e1 100644 --- a/deps/oblib/src/common/meta_programming/ob_meta_serialization.h +++ b/deps/oblib/src/common/meta_programming/ob_meta_serialization.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef DEPS_OBLIB_SRC_COMMON_META_PROGRAMMING_OB_META_SERIALIZATION_H #define DEPS_OBLIB_SRC_COMMON_META_PROGRAMMING_OB_META_SERIALIZATION_H diff --git a/deps/oblib/src/common/meta_programming/ob_type_traits.h b/deps/oblib/src/common/meta_programming/ob_type_traits.h index 36f16d05c..9c1ca8516 100644 --- a/deps/oblib/src/common/meta_programming/ob_type_traits.h +++ b/deps/oblib/src/common/meta_programming/ob_type_traits.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef DEPS_OBLIB_SRC_COMMON_META_PROGRAMMING_OB_TYPE_TRAIT_H #define DEPS_OBLIB_SRC_COMMON_META_PROGRAMMING_OB_TYPE_TRAIT_H #include diff --git a/deps/oblib/src/lib/compress/zstd/zstd_src/ob_empty.c b/deps/oblib/src/lib/compress/zstd/zstd_src/ob_empty.c index e69de29bb..7e2ac4ba4 100644 --- a/deps/oblib/src/lib/compress/zstd/zstd_src/ob_empty.c +++ b/deps/oblib/src/lib/compress/zstd/zstd_src/ob_empty.c @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ diff --git a/deps/oblib/src/lib/compress/zstd_1_3_8/ob_empty.c b/deps/oblib/src/lib/compress/zstd_1_3_8/ob_empty.c index e69de29bb..7e2ac4ba4 100644 --- a/deps/oblib/src/lib/compress/zstd_1_3_8/ob_empty.c +++ b/deps/oblib/src/lib/compress/zstd_1_3_8/ob_empty.c @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ diff --git a/deps/oblib/src/lib/file/config.cpp b/deps/oblib/src/lib/file/config.cpp index 93a8099b2..cd15c7f94 100644 --- a/deps/oblib/src/lib/file/config.cpp +++ b/deps/oblib/src/lib/file/config.cpp @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "lib/file/config.h" #include "lib/oblog/ob_log.h" using namespace std; diff --git a/deps/oblib/src/lib/geo/ob_geo_dispatcher.h b/deps/oblib/src/lib/geo/ob_geo_dispatcher.h index f080df331..3896c299c 100644 --- a/deps/oblib/src/lib/geo/ob_geo_dispatcher.h +++ b/deps/oblib/src/lib/geo/ob_geo_dispatcher.h @@ -1,14 +1,13 @@ /** - * Copyright (c) 2021 OceanBase + * Copyright (c) 2023 OceanBase * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan - * PubL v2. You may obtain a copy of Mulan PubL v2 at: + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY - * KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO - * NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the - * Mulan PubL v2 for more details. This file contains implementation for - * gis_dispatcher. + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #ifndef OCEANBASE_LIB_OB_GEO_DISPATCHER_H_ diff --git a/deps/oblib/src/lib/guard/ob_light_shared_gaurd.h b/deps/oblib/src/lib/guard/ob_light_shared_gaurd.h index 6990f3839..cf267a178 100644 --- a/deps/oblib/src/lib/guard/ob_light_shared_gaurd.h +++ b/deps/oblib/src/lib/guard/ob_light_shared_gaurd.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OCEANBASE_LIB_GUARD_OB_LIGHT_SHARED_GUARD_H #define OCEANBASE_LIB_GUARD_OB_LIGHT_SHARED_GUARD_H #include "lib/allocator/ob_malloc.h" diff --git a/deps/oblib/src/lib/lds/ob_lds_constructor.hpp b/deps/oblib/src/lib/lds/ob_lds_constructor.hpp index b15a60b5a..284123c3b 100644 --- a/deps/oblib/src/lib/lds/ob_lds_constructor.hpp +++ b/deps/oblib/src/lib/lds/ob_lds_constructor.hpp @@ -1,5 +1,14 @@ -// Copyright (c) 2020 Alibaba Inc. All Rights Reserved. -// Author: +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #include diff --git a/deps/oblib/src/lib/lock/mutex.cpp b/deps/oblib/src/lib/lock/mutex.cpp index e284c5650..21ea94e3f 100644 --- a/deps/oblib/src/lib/lock/mutex.cpp +++ b/deps/oblib/src/lib/lock/mutex.cpp @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include "lib/lock/mutex.h" #include "lib/oblog/ob_log.h" using namespace oceanbase::common; diff --git a/deps/oblib/src/lib/mysqlclient/ob_dblink_error_trans.h b/deps/oblib/src/lib/mysqlclient/ob_dblink_error_trans.h index abb2c20b4..c1eeb5f93 100644 --- a/deps/oblib/src/lib/mysqlclient/ob_dblink_error_trans.h +++ b/deps/oblib/src/lib/mysqlclient/ob_dblink_error_trans.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OBDBLINKERROR_H #define OBDBLINKERROR_H #include "lib/utility/ob_edit_distance.h" diff --git a/deps/oblib/src/lib/mysqlclient/ob_tenant_oci_envs.h b/deps/oblib/src/lib/mysqlclient/ob_tenant_oci_envs.h index 53c63fd7d..f33004e75 100644 --- a/deps/oblib/src/lib/mysqlclient/ob_tenant_oci_envs.h +++ b/deps/oblib/src/lib/mysqlclient/ob_tenant_oci_envs.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OBTENANOCIENVS_H #define OBTENANOCIENVS_H namespace oceanbase diff --git a/deps/oblib/src/lib/ob_errno.h b/deps/oblib/src/lib/ob_errno.h index 0e3df9398..7ab95e5b3 100644 --- a/deps/oblib/src/lib/ob_errno.h +++ b/deps/oblib/src/lib/ob_errno.h @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ // Copyright (c) 2018 Alibaba Inc. All Rights Reserved. // diff --git a/deps/oblib/src/lib/ssl/ob_ssl_config.cpp b/deps/oblib/src/lib/ssl/ob_ssl_config.cpp index a44227052..ec94cf108 100644 --- a/deps/oblib/src/lib/ssl/ob_ssl_config.cpp +++ b/deps/oblib/src/lib/ssl/ob_ssl_config.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/deps/oblib/src/lib/ssl/ob_ssl_config.h b/deps/oblib/src/lib/ssl/ob_ssl_config.h index fc83a760b..4b4461398 100644 --- a/deps/oblib/src/lib/ssl/ob_ssl_config.h +++ b/deps/oblib/src/lib/ssl/ob_ssl_config.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OB_SSL_CONFIG_H_ #define OB_SSL_CONFIG_H_ diff --git a/deps/oblib/src/lib/thread/ob_tenant_hook.cpp b/deps/oblib/src/lib/thread/ob_tenant_hook.cpp index e217e46f4..c8aeda44b 100644 --- a/deps/oblib/src/lib/thread/ob_tenant_hook.cpp +++ b/deps/oblib/src/lib/thread/ob_tenant_hook.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef _OCEABASE_TENANT_PRELOAD_H_ #define _OCEABASE_TENANT_PRELOAD_H_ diff --git a/deps/oblib/src/rpc/pnio/alloc/cfifo_alloc.c b/deps/oblib/src/rpc/pnio/alloc/cfifo_alloc.c index 6f14f4340..c9a83bd62 100644 --- a/deps/oblib/src/rpc/pnio/alloc/cfifo_alloc.c +++ b/deps/oblib/src/rpc/pnio/alloc/cfifo_alloc.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct cfifo_page_t { // 每次alloc ref不加1,每次free,ref减1. retire page的时候ref加K diff --git a/deps/oblib/src/rpc/pnio/alloc/cfifo_alloc.h b/deps/oblib/src/rpc/pnio/alloc/cfifo_alloc.h index e25fbde60..eef16aae6 100644 --- a/deps/oblib/src/rpc/pnio/alloc/cfifo_alloc.h +++ b/deps/oblib/src/rpc/pnio/alloc/cfifo_alloc.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + struct cfifo_page_t; typedef struct cfifo_alloc_t { diff --git a/deps/oblib/src/rpc/pnio/alloc/chunk_cache.c b/deps/oblib/src/rpc/pnio/alloc/chunk_cache.c index 06f69c1d2..390975693 100644 --- a/deps/oblib/src/rpc/pnio/alloc/chunk_cache.c +++ b/deps/oblib/src/rpc/pnio/alloc/chunk_cache.c @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ void chunk_cache_init(chunk_cache_t* cache, int chunk_bytes, int mod) { diff --git a/deps/oblib/src/rpc/pnio/alloc/chunk_cache.h b/deps/oblib/src/rpc/pnio/alloc/chunk_cache.h index 3f2170c45..69a82df03 100644 --- a/deps/oblib/src/rpc/pnio/alloc/chunk_cache.h +++ b/deps/oblib/src/rpc/pnio/alloc/chunk_cache.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct chunk_cache_t { int mod; diff --git a/deps/oblib/src/rpc/pnio/alloc/fifo_alloc.c b/deps/oblib/src/rpc/pnio/alloc/fifo_alloc.c index 4867886d8..7e9b2b329 100644 --- a/deps/oblib/src/rpc/pnio/alloc/fifo_alloc.c +++ b/deps/oblib/src/rpc/pnio/alloc/fifo_alloc.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct fifo_page_t { int ref_; diff --git a/deps/oblib/src/rpc/pnio/alloc/fifo_alloc.h b/deps/oblib/src/rpc/pnio/alloc/fifo_alloc.h index d0fb197bb..47fbb68d2 100644 --- a/deps/oblib/src/rpc/pnio/alloc/fifo_alloc.h +++ b/deps/oblib/src/rpc/pnio/alloc/fifo_alloc.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct fifo_alloc_t { chunk_cache_t* chunk_alloc; diff --git a/deps/oblib/src/rpc/pnio/alloc/mod_alloc.c b/deps/oblib/src/rpc/pnio/alloc/mod_alloc.c index 280c1778f..27a1098b5 100644 --- a/deps/oblib/src/rpc/pnio/alloc/mod_alloc.c +++ b/deps/oblib/src/rpc/pnio/alloc/mod_alloc.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef PKT_NIO_MALLOC #define PKT_NIO_MALLOC(size, label) malloc(size); #define PKT_NIO_FREE(p) free(p); diff --git a/deps/oblib/src/rpc/pnio/alloc/mod_alloc.h b/deps/oblib/src/rpc/pnio/alloc/mod_alloc.h index f173e2cdd..c0f126270 100644 --- a/deps/oblib/src/rpc/pnio/alloc/mod_alloc.h +++ b/deps/oblib/src/rpc/pnio/alloc/mod_alloc.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern void mod_report(format_t* f); extern void* mod_alloc(int64_t sz, int mod); extern void mod_free(void* p); diff --git a/deps/oblib/src/rpc/pnio/alloc/mod_define.h b/deps/oblib/src/rpc/pnio/alloc/mod_define.h index 9cba1c44b..32b98448f 100644 --- a/deps/oblib/src/rpc/pnio/alloc/mod_define.h +++ b/deps/oblib/src/rpc/pnio/alloc/mod_define.h @@ -1,4 +1,15 @@ -//keep +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + MOD_DEF(DEFAULT) MOD_DEF(SERVER_CTX_CHUNK) MOD_DEF(SERVER_RESP_CHUNK) diff --git a/deps/oblib/src/rpc/pnio/alloc/ref_alloc.c b/deps/oblib/src/rpc/pnio/alloc/ref_alloc.c index a88b80e11..5b75f35c4 100644 --- a/deps/oblib/src/rpc/pnio/alloc/ref_alloc.c +++ b/deps/oblib/src/rpc/pnio/alloc/ref_alloc.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + void* ref_alloc(int64_t sz, int mod) { int64_t* ref = (int64_t*)mod_alloc(sz + sizeof(int64_t), mod); if (ref) { diff --git a/deps/oblib/src/rpc/pnio/alloc/ref_alloc.h b/deps/oblib/src/rpc/pnio/alloc/ref_alloc.h index c75519470..6e75e0a05 100644 --- a/deps/oblib/src/rpc/pnio/alloc/ref_alloc.h +++ b/deps/oblib/src/rpc/pnio/alloc/ref_alloc.h @@ -1,2 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern void* ref_alloc(int64_t sz, int mod); extern void ref_free(void* p); diff --git a/deps/oblib/src/rpc/pnio/config.h b/deps/oblib/src/rpc/pnio/config.h index be65bd065..8864564ac 100644 --- a/deps/oblib/src/rpc/pnio/config.h +++ b/deps/oblib/src/rpc/pnio/config.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define PNIO_ENABLE_CRC 0 #define PNIO_ENABLE_DELAY_WARN 1 diff --git a/deps/oblib/src/rpc/pnio/ds/counter.h b/deps/oblib/src/rpc/pnio/ds/counter.h index 8103b389b..9717d2c8a 100644 --- a/deps/oblib/src/rpc/pnio/ds/counter.h +++ b/deps/oblib/src/rpc/pnio/ds/counter.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + struct thread_node_t { link_t link; diff --git a/deps/oblib/src/rpc/pnio/ds/dlink.c b/deps/oblib/src/rpc/pnio/ds/dlink.c index 4fbe13c9d..f9565077e 100644 --- a/deps/oblib/src/rpc/pnio/ds/dlink.c +++ b/deps/oblib/src/rpc/pnio/ds/dlink.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern inline bool dlink_is_empty(dlink_t* n); extern inline void dlink_init(dlink_t* n); extern inline void __dlink_insert(dlink_t* prev, dlink_t* next, dlink_t* n); diff --git a/deps/oblib/src/rpc/pnio/ds/dlink.h b/deps/oblib/src/rpc/pnio/ds/dlink.h index ffb1d45fe..3c86c67ad 100644 --- a/deps/oblib/src/rpc/pnio/ds/dlink.h +++ b/deps/oblib/src/rpc/pnio/ds/dlink.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct dlink_t { struct dlink_t* next; struct dlink_t* prev; diff --git a/deps/oblib/src/rpc/pnio/ds/fixed_queue.c b/deps/oblib/src/rpc/pnio/ds/fixed_queue.c index c4deb0795..54be0725c 100644 --- a/deps/oblib/src/rpc/pnio/ds/fixed_queue.c +++ b/deps/oblib/src/rpc/pnio/ds/fixed_queue.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + void fixed_queue_init(fixed_queue_t* q, void* buf, int64_t bytes) { q->push = 0; diff --git a/deps/oblib/src/rpc/pnio/ds/fixed_queue.h b/deps/oblib/src/rpc/pnio/ds/fixed_queue.h index fce2c2dc4..6bfa4de92 100644 --- a/deps/oblib/src/rpc/pnio/ds/fixed_queue.h +++ b/deps/oblib/src/rpc/pnio/ds/fixed_queue.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct fixed_queue_t { void** data; int64_t capacity; diff --git a/deps/oblib/src/rpc/pnio/ds/fixed_stack.c b/deps/oblib/src/rpc/pnio/ds/fixed_stack.c index 02168b971..4626f2aee 100644 --- a/deps/oblib/src/rpc/pnio/ds/fixed_stack.c +++ b/deps/oblib/src/rpc/pnio/ds/fixed_stack.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + void fixed_stack_init(fixed_stack_t* stk) { stk->top_ = 0; diff --git a/deps/oblib/src/rpc/pnio/ds/fixed_stack.h b/deps/oblib/src/rpc/pnio/ds/fixed_stack.h index f900ace92..e7e96d48c 100644 --- a/deps/oblib/src/rpc/pnio/ds/fixed_stack.h +++ b/deps/oblib/src/rpc/pnio/ds/fixed_stack.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct fixed_stack_t { int top_; diff --git a/deps/oblib/src/rpc/pnio/ds/hash.c b/deps/oblib/src/rpc/pnio/ds/hash.c index eb57299a4..1940d78cd 100644 --- a/deps/oblib/src/rpc/pnio/ds/hash.c +++ b/deps/oblib/src/rpc/pnio/ds/hash.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define __fhmix(h) ({ \ (h) ^= (h) >> 23; \ (h) *= 0x2127599bf4325c37ULL; \ diff --git a/deps/oblib/src/rpc/pnio/ds/hash.h b/deps/oblib/src/rpc/pnio/ds/hash.h index 2f0687876..54219e004 100644 --- a/deps/oblib/src/rpc/pnio/ds/hash.h +++ b/deps/oblib/src/rpc/pnio/ds/hash.h @@ -1 +1,13 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern uint64_t fasthash64(const void *buf, size_t len, uint64_t seed); diff --git a/deps/oblib/src/rpc/pnio/ds/hash_map.c b/deps/oblib/src/rpc/pnio/ds/hash_map.c index fca16cf9c..a1c103e7c 100644 --- a/deps/oblib/src/rpc/pnio/ds/hash_map.c +++ b/deps/oblib/src/rpc/pnio/ds/hash_map.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + hash_t* hash_create(int64_t capacity) { int64_t alloc_size = sizeof(hash_t) + capacity * sizeof(link_t); hash_t* p = (hash_t*)malloc(alloc_size); diff --git a/deps/oblib/src/rpc/pnio/ds/hash_map.h b/deps/oblib/src/rpc/pnio/ds/hash_map.h index ad62ab4b7..8ddb7c3ff 100644 --- a/deps/oblib/src/rpc/pnio/ds/hash_map.h +++ b/deps/oblib/src/rpc/pnio/ds/hash_map.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct hash_t { int64_t capacity; link_t table[0]; diff --git a/deps/oblib/src/rpc/pnio/ds/id_map.c b/deps/oblib/src/rpc/pnio/ds/id_map.c index 472264803..46125e543 100644 --- a/deps/oblib/src/rpc/pnio/ds/id_map.c +++ b/deps/oblib/src/rpc/pnio/ds/id_map.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static idm_item_t* idm_locate(idm_t* idm, uint64_t id) { return idm->table + (id % idm->capacity); } static void idm_item_recycle(idm_item_t* item, uint64_t capacity) { item->data = NULL; diff --git a/deps/oblib/src/rpc/pnio/ds/id_map.h b/deps/oblib/src/rpc/pnio/ds/id_map.h index 666e24b69..422136e4a 100644 --- a/deps/oblib/src/rpc/pnio/ds/id_map.h +++ b/deps/oblib/src/rpc/pnio/ds/id_map.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct idm_item_t { link_t link; uint64_t id; diff --git a/deps/oblib/src/rpc/pnio/ds/ihash_map.c b/deps/oblib/src/rpc/pnio/ds/ihash_map.c index ceebcdf7e..af6036ee6 100644 --- a/deps/oblib/src/rpc/pnio/ds/ihash_map.c +++ b/deps/oblib/src/rpc/pnio/ds/ihash_map.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static uint64_t __ihash_calc(uint64_t k) { return fasthash64(&k, sizeof(k), 0); } static link_t* __ihash_locate(hash_t* map, uint64_t k) { return &map->table[__ihash_calc(k) % map->capacity]; } static uint64_t __ihash_key(link_t* l) { return *(uint64_t*)(l + 1); } diff --git a/deps/oblib/src/rpc/pnio/ds/ihash_map.h b/deps/oblib/src/rpc/pnio/ds/ihash_map.h index e9bc839a7..5768a274c 100644 --- a/deps/oblib/src/rpc/pnio/ds/ihash_map.h +++ b/deps/oblib/src/rpc/pnio/ds/ihash_map.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern link_t* ihash_insert(hash_t* map, link_t* k); extern link_t* ihash_del(hash_t* map, uint64_t k); extern link_t* ihash_get(hash_t* map, uint64_t k); diff --git a/deps/oblib/src/rpc/pnio/ds/link-queue.h b/deps/oblib/src/rpc/pnio/ds/link-queue.h index c5d409ed9..3351297a5 100644 --- a/deps/oblib/src/rpc/pnio/ds/link-queue.h +++ b/deps/oblib/src/rpc/pnio/ds/link-queue.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct link_queue_t { link_t *head_ RK_CACHE_ALIGNED; diff --git a/deps/oblib/src/rpc/pnio/ds/link.c b/deps/oblib/src/rpc/pnio/ds/link.c index 38a44927f..db83ecd77 100644 --- a/deps/oblib/src/rpc/pnio/ds/link.c +++ b/deps/oblib/src/rpc/pnio/ds/link.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern inline void link_init(link_t* n); extern inline bool link_is_empty(link_t* n); extern inline link_t* link_insert(link_t* prev, link_t* t); diff --git a/deps/oblib/src/rpc/pnio/ds/link.h b/deps/oblib/src/rpc/pnio/ds/link.h index 50246af55..12e103399 100644 --- a/deps/oblib/src/rpc/pnio/ds/link.h +++ b/deps/oblib/src/rpc/pnio/ds/link.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct link_t { struct link_t* next; } link_t; diff --git a/deps/oblib/src/rpc/pnio/ds/queue.c b/deps/oblib/src/rpc/pnio/ds/queue.c index 9b5278a1b..352c3c4ea 100644 --- a/deps/oblib/src/rpc/pnio/ds/queue.c +++ b/deps/oblib/src/rpc/pnio/ds/queue.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + void queue_init(queue_t* q) { q->head.next = NULL; q->tail = &q->head; diff --git a/deps/oblib/src/rpc/pnio/ds/queue.h b/deps/oblib/src/rpc/pnio/ds/queue.h index 6f1446de3..dbbe425ae 100644 --- a/deps/oblib/src/rpc/pnio/ds/queue.h +++ b/deps/oblib/src/rpc/pnio/ds/queue.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct queue_t { link_t head; link_t* tail; diff --git a/deps/oblib/src/rpc/pnio/ds/sc_queue.c b/deps/oblib/src/rpc/pnio/ds/sc_queue.c index bf24bd2da..bfb53fcbe 100644 --- a/deps/oblib/src/rpc/pnio/ds/sc_queue.c +++ b/deps/oblib/src/rpc/pnio/ds/sc_queue.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + void sc_queue_init(sc_queue_t* q) { q->head.next = NULL; q->tail = &q->head; diff --git a/deps/oblib/src/rpc/pnio/ds/sc_queue.h b/deps/oblib/src/rpc/pnio/ds/sc_queue.h index 2049bcf09..7afa913ad 100644 --- a/deps/oblib/src/rpc/pnio/ds/sc_queue.h +++ b/deps/oblib/src/rpc/pnio/ds/sc_queue.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct sc_queue_t { link_t head RK_CACHE_ALIGNED; link_t* tail RK_CACHE_ALIGNED; diff --git a/deps/oblib/src/rpc/pnio/ds/str_type.c b/deps/oblib/src/rpc/pnio/ds/str_type.c index 3208f361b..e9bec1e2f 100644 --- a/deps/oblib/src/rpc/pnio/ds/str_type.c +++ b/deps/oblib/src/rpc/pnio/ds/str_type.c @@ -1,2 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern inline int64_t str_hash(str_t* s); extern inline int str_cmp(str_t* s1, str_t* s2); diff --git a/deps/oblib/src/rpc/pnio/ds/str_type.h b/deps/oblib/src/rpc/pnio/ds/str_type.h index 43eceea2f..0b8934856 100644 --- a/deps/oblib/src/rpc/pnio/ds/str_type.h +++ b/deps/oblib/src/rpc/pnio/ds/str_type.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct str_t { int64_t s; char b[0]; diff --git a/deps/oblib/src/rpc/pnio/interface/group.c b/deps/oblib/src/rpc/pnio/interface/group.c index e58527f7b..a3d5893a0 100644 --- a/deps/oblib/src/rpc/pnio/interface/group.c +++ b/deps/oblib/src/rpc/pnio/interface/group.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define MAX_PN_LISTEN 256 #define MAX_PN_GRP (1<<17) #define MAX_PN_PER_GRP 64 diff --git a/deps/oblib/src/rpc/pnio/interface/group.h b/deps/oblib/src/rpc/pnio/interface/group.h index a3051956f..c90958026 100644 --- a/deps/oblib/src/rpc/pnio/interface/group.h +++ b/deps/oblib/src/rpc/pnio/interface/group.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #pragma once #include #include diff --git a/deps/oblib/src/rpc/pnio/io/eloop.c b/deps/oblib/src/rpc/pnio/io/eloop.c index 828f80ecc..6943288a9 100644 --- a/deps/oblib/src/rpc/pnio/io/eloop.c +++ b/deps/oblib/src/rpc/pnio/io/eloop.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + struct epoll_event *__make_epoll_event(struct epoll_event *event, uint32_t event_flag, void* val) { event->events = event_flag; event->data.ptr = val; diff --git a/deps/oblib/src/rpc/pnio/io/eloop.h b/deps/oblib/src/rpc/pnio/io/eloop.h index ed4429008..1b8e05d35 100644 --- a/deps/oblib/src/rpc/pnio/io/eloop.h +++ b/deps/oblib/src/rpc/pnio/io/eloop.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct eloop_t { int fd; dlink_t ready_link; diff --git a/deps/oblib/src/rpc/pnio/io/evfd.c b/deps/oblib/src/rpc/pnio/io/evfd.c index 8db4b4cb6..b3e8f324c 100644 --- a/deps/oblib/src/rpc/pnio/io/evfd.c +++ b/deps/oblib/src/rpc/pnio/io/evfd.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + void evfd_signal(int fd) { int64_t c = 1; write(fd, &c, sizeof(c)); diff --git a/deps/oblib/src/rpc/pnio/io/evfd.h b/deps/oblib/src/rpc/pnio/io/evfd.h index acddcc370..32eb88e37 100644 --- a/deps/oblib/src/rpc/pnio/io/evfd.h +++ b/deps/oblib/src/rpc/pnio/io/evfd.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include typedef struct evfd_t { SOCK_COMMON; diff --git a/deps/oblib/src/rpc/pnio/io/ibuffer.c b/deps/oblib/src/rpc/pnio/io/ibuffer.c index 165aa0fe2..106eac901 100644 --- a/deps/oblib/src/rpc/pnio/io/ibuffer.c +++ b/deps/oblib/src/rpc/pnio/io/ibuffer.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static int64_t MIN_IBUFFER_SIZE = (1<<17) - 128; static void* ib_alloc(int64_t sz, int mod) { diff --git a/deps/oblib/src/rpc/pnio/io/ibuffer.h b/deps/oblib/src/rpc/pnio/io/ibuffer.h index ce5f8b430..6aabf7acf 100644 --- a/deps/oblib/src/rpc/pnio/io/ibuffer.h +++ b/deps/oblib/src/rpc/pnio/io/ibuffer.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct ibuffer_t { int mod; int64_t cur_ref_; diff --git a/deps/oblib/src/rpc/pnio/io/io_func.c b/deps/oblib/src/rpc/pnio/io/io_func.c index 0a6625206..7f3271c95 100644 --- a/deps/oblib/src/rpc/pnio/io/io_func.c +++ b/deps/oblib/src/rpc/pnio/io/io_func.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + int make_fd_nonblocking(int fd) { int err = 0; diff --git a/deps/oblib/src/rpc/pnio/io/io_func.h b/deps/oblib/src/rpc/pnio/io/io_func.h index d79916599..6dc1a2ce9 100644 --- a/deps/oblib/src/rpc/pnio/io/io_func.h +++ b/deps/oblib/src/rpc/pnio/io/io_func.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/deps/oblib/src/rpc/pnio/io/iov.c b/deps/oblib/src/rpc/pnio/io/iov.c index 19043b15a..7d5689b50 100644 --- a/deps/oblib/src/rpc/pnio/io/iov.c +++ b/deps/oblib/src/rpc/pnio/io/iov.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern void iov_set(struct iovec* iov, char* b, int64_t s); extern void iov_set_from_str(struct iovec* iov, str_t* s); extern void iov_consume_one(struct iovec* iov, int64_t bytes); diff --git a/deps/oblib/src/rpc/pnio/io/iov.h b/deps/oblib/src/rpc/pnio/io/iov.h index 076e25794..96a492257 100644 --- a/deps/oblib/src/rpc/pnio/io/iov.h +++ b/deps/oblib/src/rpc/pnio/io/iov.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include inline void iov_set(struct iovec* iov, char* b, int64_t s) { iov->iov_base = b; diff --git a/deps/oblib/src/rpc/pnio/io/msg.c b/deps/oblib/src/rpc/pnio/io/msg.c index abff7f478..4a61712fd 100644 --- a/deps/oblib/src/rpc/pnio/io/msg.c +++ b/deps/oblib/src/rpc/pnio/io/msg.c @@ -1 +1,13 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern msg_t* msg_init(msg_t* m, const char* b, int64_t s); diff --git a/deps/oblib/src/rpc/pnio/io/msg.h b/deps/oblib/src/rpc/pnio/io/msg.h index 039a05648..82819048b 100644 --- a/deps/oblib/src/rpc/pnio/io/msg.h +++ b/deps/oblib/src/rpc/pnio/io/msg.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + enum { MSG_LIMIT = 64 * 1024}; typedef struct msg_t { diff --git a/deps/oblib/src/rpc/pnio/io/rate_limit.c b/deps/oblib/src/rpc/pnio/io/rate_limit.c index 5f548a19a..cd8ba7bea 100644 --- a/deps/oblib/src/rpc/pnio/io/rate_limit.c +++ b/deps/oblib/src/rpc/pnio/io/rate_limit.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern int pktc_sk_handle_event(pktc_sk_t* s); extern int pkts_sk_handle_event(pkts_sk_t* s); extern int pktc_sk_consume(pktc_sk_t* s, int64_t time_limit, int64_t* avail_bytes); diff --git a/deps/oblib/src/rpc/pnio/io/rate_limit.h b/deps/oblib/src/rpc/pnio/io/rate_limit.h index a467a6810..4c20ed9dd 100644 --- a/deps/oblib/src/rpc/pnio/io/rate_limit.h +++ b/deps/oblib/src/rpc/pnio/io/rate_limit.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define RL_SLEEP_TIME_US 100000 // determine the min sleep time when the socket is rate-limited typedef struct rl_timerfd_t { SOCK_COMMON; diff --git a/deps/oblib/src/rpc/pnio/io/sock.c b/deps/oblib/src/rpc/pnio/io/sock.c index 39ce8ce76..a979b5cbd 100644 --- a/deps/oblib/src/rpc/pnio/io/sock.c +++ b/deps/oblib/src/rpc/pnio/io/sock.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern inline void skset(sock_t* s, uint32_t m); extern inline void skclear(sock_t* s, uint32_t m); extern inline bool sktest(sock_t* s, uint32_t m); diff --git a/deps/oblib/src/rpc/pnio/io/sock.h b/deps/oblib/src/rpc/pnio/io/sock.h index 96bd7046f..af2c741c1 100644 --- a/deps/oblib/src/rpc/pnio/io/sock.h +++ b/deps/oblib/src/rpc/pnio/io/sock.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include struct sock_t; #define SOCK_FACTORY_COMMON \ diff --git a/deps/oblib/src/rpc/pnio/io/sock_io.c b/deps/oblib/src/rpc/pnio/io/sock_io.c index 8c54b7362..a37c3d062 100644 --- a/deps/oblib/src/rpc/pnio/io/sock_io.c +++ b/deps/oblib/src/rpc/pnio/io/sock_io.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static int sk_translate_io_error(sock_t* s, int64_t bytes, uint32_t epbit) { if (bytes > 0) { return 0; diff --git a/deps/oblib/src/rpc/pnio/io/sock_io.h b/deps/oblib/src/rpc/pnio/io/sock_io.h index 1dc305619..390ccc83e 100644 --- a/deps/oblib/src/rpc/pnio/io/sock_io.h +++ b/deps/oblib/src/rpc/pnio/io/sock_io.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern int sk_read(sock_t* s, char* buf, size_t size, ssize_t* rbytes); extern int sk_readv(sock_t* s, struct iovec* iov, int cnt, ssize_t* rbytes); extern int sk_write(sock_t* s, const char* buf, size_t size, ssize_t* wbytes); diff --git a/deps/oblib/src/rpc/pnio/io/time_wheel.c b/deps/oblib/src/rpc/pnio/io/time_wheel.c index 7b584ccb1..b1217d11c 100644 --- a/deps/oblib/src/rpc/pnio/io/time_wheel.c +++ b/deps/oblib/src/rpc/pnio/io/time_wheel.c @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ static int64_t tw_align_time(int64_t us) { return us & ~(TIME_WHEEL_SLOT_INTERVAL - 1); } static dlink_t* tw_get_slot(time_wheel_t* tw, int64_t us) { return tw->slot + (us/TIME_WHEEL_SLOT_INTERVAL) % TIME_WHEEL_SLOT_NUM; } diff --git a/deps/oblib/src/rpc/pnio/io/time_wheel.h b/deps/oblib/src/rpc/pnio/io/time_wheel.h index a46699976..d4fa32def 100644 --- a/deps/oblib/src/rpc/pnio/io/time_wheel.h +++ b/deps/oblib/src/rpc/pnio/io/time_wheel.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define TIME_WHEEL_SLOT_NUM (1<<16) #define TIME_WHEEL_SLOT_INTERVAL 8192 typedef struct time_wheel_t time_wheel_t; diff --git a/deps/oblib/src/rpc/pnio/io/timerfd.c b/deps/oblib/src/rpc/pnio/io/timerfd.c index 4b81c29cd..d7c91de94 100644 --- a/deps/oblib/src/rpc/pnio/io/timerfd.c +++ b/deps/oblib/src/rpc/pnio/io/timerfd.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + int timerfd_set_interval(timerfd_t* s, int64_t interval) { rk_info("set interval: %ld", interval); struct itimerspec it = {{interval/1000000, 1000 * (interval % 1000000)}, {0, 1}}; diff --git a/deps/oblib/src/rpc/pnio/io/timerfd.h b/deps/oblib/src/rpc/pnio/io/timerfd.h index df921f821..6297cb419 100644 --- a/deps/oblib/src/rpc/pnio/io/timerfd.h +++ b/deps/oblib/src/rpc/pnio/io/timerfd.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include typedef struct timerfd_t { SOCK_COMMON; diff --git a/deps/oblib/src/rpc/pnio/io/write_queue.c b/deps/oblib/src/rpc/pnio/io/write_queue.c index f28fe8500..5158860ef 100644 --- a/deps/oblib/src/rpc/pnio/io/write_queue.c +++ b/deps/oblib/src/rpc/pnio/io/write_queue.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + str_t* sfl(dlink_t* l) { return (str_t*)(l+1); } int64_t cidfl(dlink_t* l) {return *((int64_t*)l-1); } static int iov_from_blist(struct iovec* iov, int64_t limit, dlink_t* head) { diff --git a/deps/oblib/src/rpc/pnio/io/write_queue.h b/deps/oblib/src/rpc/pnio/io/write_queue.h index 71135edb5..33cf6990a 100644 --- a/deps/oblib/src/rpc/pnio/io/write_queue.h +++ b/deps/oblib/src/rpc/pnio/io/write_queue.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define BUCKET_SIZE 1024 typedef struct write_queue_t { dqueue_t queue; diff --git a/deps/oblib/src/rpc/pnio/nio/addr.c b/deps/oblib/src/rpc/pnio/nio/addr.c index b3ebb3193..ccdb8afd0 100644 --- a/deps/oblib/src/rpc/pnio/nio/addr.c +++ b/deps/oblib/src/rpc/pnio/nio/addr.c @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ const char* addr_str(format_t* f, addr_t addr) { char buf[18]; diff --git a/deps/oblib/src/rpc/pnio/nio/addr.h b/deps/oblib/src/rpc/pnio/nio/addr.h index 77a515c26..65e9860e9 100644 --- a/deps/oblib/src/rpc/pnio/nio/addr.h +++ b/deps/oblib/src/rpc/pnio/nio/addr.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #pragma once #include #include diff --git a/deps/oblib/src/rpc/pnio/nio/decode.t.h b/deps/oblib/src/rpc/pnio/nio/decode.t.h index d5d137afc..c46c6de08 100644 --- a/deps/oblib/src/rpc/pnio/nio/decode.t.h +++ b/deps/oblib/src/rpc/pnio/nio/decode.t.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static int my_sk_do_decode(my_sk_t* s, my_msg_t* msg, int64_t* avail_bytes) { int err = 0; void* b = NULL; diff --git a/deps/oblib/src/rpc/pnio/nio/easy_head.c b/deps/oblib/src/rpc/pnio/nio/easy_head.c index 241a89936..39d4781b8 100644 --- a/deps/oblib/src/rpc/pnio/nio/easy_head.c +++ b/deps/oblib/src/rpc/pnio/nio/easy_head.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern void eh_set(easy_head_t* h, uint32_t len, uint32_t pkt_id); extern uint64_t eh_packet_id(const char* b); extern int64_t eh_decode(char* b, int64_t s); diff --git a/deps/oblib/src/rpc/pnio/nio/easy_head.h b/deps/oblib/src/rpc/pnio/nio/easy_head.h index da11c3e2b..51f2fcee8 100644 --- a/deps/oblib/src/rpc/pnio/nio/easy_head.h +++ b/deps/oblib/src/rpc/pnio/nio/easy_head.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct easy_head_t { uint32_t magic_; diff --git a/deps/oblib/src/rpc/pnio/nio/handle_io.t.h b/deps/oblib/src/rpc/pnio/nio/handle_io.t.h index 287054ee1..2d6915755 100644 --- a/deps/oblib/src/rpc/pnio/nio/handle_io.t.h +++ b/deps/oblib/src/rpc/pnio/nio/handle_io.t.h @@ -1,11 +1,15 @@ -/* errors -1. 0: yield, file is writable, and there is remain data to send. -2. EAGAIN: wait wakeup, 3 cases: - 1. file is not writable, wait epoll to wakeup - 2. no remain data to send, wait poster to wakeup - 3. wait for memory or bandwidth... -3. Exception: should destroy sock. -*/ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + //int xxx_sk_do_flush(xxx_sk_t* s, int64_t* remain); /* errors diff --git a/deps/oblib/src/rpc/pnio/nio/inet.c b/deps/oblib/src/rpc/pnio/nio/inet.c index 97f7ace38..0b86db7b7 100644 --- a/deps/oblib/src/rpc/pnio/nio/inet.c +++ b/deps/oblib/src/rpc/pnio/nio/inet.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define PNIO_TCP_SYNCNT 3 int check_connect_result(int fd) { int err = 0; diff --git a/deps/oblib/src/rpc/pnio/nio/inet.h b/deps/oblib/src/rpc/pnio/nio/inet.h index 20456f15a..19592f340 100644 --- a/deps/oblib/src/rpc/pnio/nio/inet.h +++ b/deps/oblib/src/rpc/pnio/nio/inet.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include extern int async_connect(addr_t dest, uint64_t dispatch_id); extern int listen_create(addr_t src); diff --git a/deps/oblib/src/rpc/pnio/nio/listener.c b/deps/oblib/src/rpc/pnio/nio/listener.c index dbce9cfea..b8274fa61 100644 --- a/deps/oblib/src/rpc/pnio/nio/listener.c +++ b/deps/oblib/src/rpc/pnio/nio/listener.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + int pkt_nio_dispatch_externel(int accept_fd) { return 0; } #ifndef DISPATCH_EXTERNAL #define DISPATCH_EXTERNAL(accept_fd) pkt_nio_dispatch_externel(accept_fd) diff --git a/deps/oblib/src/rpc/pnio/nio/listener.h b/deps/oblib/src/rpc/pnio/nio/listener.h index d56f4ac16..46ef9f722 100644 --- a/deps/oblib/src/rpc/pnio/nio/listener.h +++ b/deps/oblib/src/rpc/pnio/nio/listener.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef int (*dispatch_fd_func_t)(int fd, const void* buf, int sz); typedef struct listen_t { diff --git a/deps/oblib/src/rpc/pnio/nio/listenfd.c b/deps/oblib/src/rpc/pnio/nio/listenfd.c index cb51dac3b..c30c3f371 100644 --- a/deps/oblib/src/rpc/pnio/nio/listenfd.c +++ b/deps/oblib/src/rpc/pnio/nio/listenfd.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static int do_accept(int fd, int is_pipe) { int ret = -1; diff --git a/deps/oblib/src/rpc/pnio/nio/listenfd.h b/deps/oblib/src/rpc/pnio/nio/listenfd.h index 25e11de29..0e5978fa8 100644 --- a/deps/oblib/src/rpc/pnio/nio/listenfd.h +++ b/deps/oblib/src/rpc/pnio/nio/listenfd.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include typedef struct listenfd_t { SOCK_COMMON; diff --git a/deps/oblib/src/rpc/pnio/nio/msg_decode.c b/deps/oblib/src/rpc/pnio/nio/msg_decode.c index d7909a5e9..eb6d17cec 100644 --- a/deps/oblib/src/rpc/pnio/nio/msg_decode.c +++ b/deps/oblib/src/rpc/pnio/nio/msg_decode.c @@ -1,2 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern int64_t msg_decode(const char* b, int64_t s); extern uint64_t msg_get_id(const char* b); diff --git a/deps/oblib/src/rpc/pnio/nio/msg_decode.h b/deps/oblib/src/rpc/pnio/nio/msg_decode.h index 79c4640f1..5da7d5ab3 100644 --- a/deps/oblib/src/rpc/pnio/nio/msg_decode.h +++ b/deps/oblib/src/rpc/pnio/nio/msg_decode.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + inline int64_t msg_decode(const char* b, int64_t s) { if (s < 8) { return 8; diff --git a/deps/oblib/src/rpc/pnio/nio/nio-tpl-ns.h b/deps/oblib/src/rpc/pnio/nio/nio-tpl-ns.h index a79f7dc94..2a9d3d8a7 100644 --- a/deps/oblib/src/rpc/pnio/nio/nio-tpl-ns.h +++ b/deps/oblib/src/rpc/pnio/nio/nio-tpl-ns.h @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef __ns__ #define __ns__ diff --git a/deps/oblib/src/rpc/pnio/nio/packet_client.c b/deps/oblib/src/rpc/pnio/nio/packet_client.c index 53c76e91a..d3dd4ac55 100644 --- a/deps/oblib/src/rpc/pnio/nio/packet_client.c +++ b/deps/oblib/src/rpc/pnio/nio/packet_client.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct pktc_msg_t { int64_t sz; char* payload; diff --git a/deps/oblib/src/rpc/pnio/nio/packet_client.h b/deps/oblib/src/rpc/pnio/nio/packet_client.h index b9741ddf1..4165e4a17 100644 --- a/deps/oblib/src/rpc/pnio/nio/packet_client.h +++ b/deps/oblib/src/rpc/pnio/nio/packet_client.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct pktc_req_t pktc_req_t; typedef struct pktc_cb_t pktc_cb_t; typedef struct pktc_t pktc_t; diff --git a/deps/oblib/src/rpc/pnio/nio/packet_server.c b/deps/oblib/src/rpc/pnio/nio/packet_server.c index dfb53e3a7..ee3952371 100644 --- a/deps/oblib/src/rpc/pnio/nio/packet_server.c +++ b/deps/oblib/src/rpc/pnio/nio/packet_server.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct pkts_msg_t { int64_t sz; char* payload; diff --git a/deps/oblib/src/rpc/pnio/nio/packet_server.h b/deps/oblib/src/rpc/pnio/nio/packet_server.h index 8fa223dd0..50a99a4df 100644 --- a/deps/oblib/src/rpc/pnio/nio/packet_server.h +++ b/deps/oblib/src/rpc/pnio/nio/packet_server.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct pkts_sk_t pkts_sk_t; typedef struct pkts_req_t pkts_req_t; typedef struct pkts_t pkts_t; diff --git a/deps/oblib/src/rpc/pnio/nio/pktc_post.h b/deps/oblib/src/rpc/pnio/nio/pktc_post.h index 796ded21f..7ec13fa57 100644 --- a/deps/oblib/src/rpc/pnio/nio/pktc_post.h +++ b/deps/oblib/src/rpc/pnio/nio/pktc_post.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static pktc_sk_t* pktc_do_connect(pktc_t* cl, addr_t dest) { pktc_sk_t* sk = NULL; ef(!(sk = pktc_sk_new(&cl->sf))); diff --git a/deps/oblib/src/rpc/pnio/nio/pktc_resp.h b/deps/oblib/src/rpc/pnio/nio/pktc_resp.h index 9fa8b27ad..d0be65ce9 100644 --- a/deps/oblib/src/rpc/pnio/nio/pktc_resp.h +++ b/deps/oblib/src/rpc/pnio/nio/pktc_resp.h @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ static void pktc_do_cb(pktc_t* io, pktc_cb_t* cb, pktc_msg_t* m) { cb->resp_cb(cb, m->payload, m->sz); diff --git a/deps/oblib/src/rpc/pnio/nio/pktc_sk_factory.h b/deps/oblib/src/rpc/pnio/nio/pktc_sk_factory.h index 3fa66e624..217df3295 100644 --- a/deps/oblib/src/rpc/pnio/nio/pktc_sk_factory.h +++ b/deps/oblib/src/rpc/pnio/nio/pktc_sk_factory.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static int pktc_sk_check_connect(pktc_sk_t* s) { int err = 0; if (s->conn_ok) { diff --git a/deps/oblib/src/rpc/pnio/nio/pktc_wait.c b/deps/oblib/src/rpc/pnio/nio/pktc_wait.c index 0a9d849d4..7a8b589cc 100644 --- a/deps/oblib/src/rpc/pnio/nio/pktc_wait.c +++ b/deps/oblib/src/rpc/pnio/nio/pktc_wait.c @@ -1,2 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern void pktc_wait_cb(const char* b, int64_t s, void* arg); extern char* pktc_wait(pktc_wait_t* w, int64_t* sz); diff --git a/deps/oblib/src/rpc/pnio/nio/pktc_wait.h b/deps/oblib/src/rpc/pnio/nio/pktc_wait.h index 1f79ea853..eece00333 100644 --- a/deps/oblib/src/rpc/pnio/nio/pktc_wait.h +++ b/deps/oblib/src/rpc/pnio/nio/pktc_wait.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct pktc_wait_t { int32_t done; uint32_t sz; diff --git a/deps/oblib/src/rpc/pnio/nio/pkts_post.h b/deps/oblib/src/rpc/pnio/nio/pkts_post.h index 26060b7b8..e975a996a 100644 --- a/deps/oblib/src/rpc/pnio/nio/pkts_post.h +++ b/deps/oblib/src/rpc/pnio/nio/pkts_post.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static void pkts_post_io(pkts_t* io, pkts_req_t* r) { pkts_sk_t* sk = (typeof(sk))idm_get(&io->sk_map, r->sock_id); if (sk && 0 == r->errcode) { diff --git a/deps/oblib/src/rpc/pnio/nio/pkts_sk_factory.h b/deps/oblib/src/rpc/pnio/nio/pkts_sk_factory.h index cc97da350..702eff4de 100644 --- a/deps/oblib/src/rpc/pnio/nio/pkts_sk_factory.h +++ b/deps/oblib/src/rpc/pnio/nio/pkts_sk_factory.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static void* pkts_sk_alloc(int64_t sz) { return salloc(sz); } static void pkts_sk_free(void* p) { sfree(p); } diff --git a/deps/oblib/src/rpc/pnio/nio/timeout.h b/deps/oblib/src/rpc/pnio/nio/timeout.h index ce51dc3e9..bc5e1cc70 100644 --- a/deps/oblib/src/rpc/pnio/nio/timeout.h +++ b/deps/oblib/src/rpc/pnio/nio/timeout.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static bool is_epoll_handle_timeout(int64_t time_limit) { return time_limit > 0 && rk_get_corse_us() > time_limit; diff --git a/deps/oblib/src/rpc/pnio/nio/write_queue.t.h b/deps/oblib/src/rpc/pnio/nio/write_queue.t.h index 714c083ec..eb96d41ba 100644 --- a/deps/oblib/src/rpc/pnio/nio/write_queue.t.h +++ b/deps/oblib/src/rpc/pnio/nio/write_queue.t.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static void my_flush_cb_exception(my_t* io, my_req_t* r) { return my_flush_cb(io, r); } diff --git a/deps/oblib/src/rpc/pnio/pkt-nio.c b/deps/oblib/src/rpc/pnio/pkt-nio.c index 80a82be9f..fc79be1fe 100644 --- a/deps/oblib/src/rpc/pnio/pkt-nio.c +++ b/deps/oblib/src/rpc/pnio/pkt-nio.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "pkt-nio.h" #include "r0/define.c" diff --git a/deps/oblib/src/rpc/pnio/pkt-nio.h b/deps/oblib/src/rpc/pnio/pkt-nio.h index 2320c6e69..d7cd2e59d 100644 --- a/deps/oblib/src/rpc/pnio/pkt-nio.h +++ b/deps/oblib/src/rpc/pnio/pkt-nio.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #pragma once #include "config.h" #include "r0/define.h" diff --git a/deps/oblib/src/rpc/pnio/r0/atomic.h b/deps/oblib/src/rpc/pnio/r0/atomic.h index c52fc0122..fc42406f8 100644 --- a/deps/oblib/src/rpc/pnio/r0/atomic.h +++ b/deps/oblib/src/rpc/pnio/r0/atomic.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #pragma once #define BARRIER() asm volatile(""::: "memory") #define MBARRIER() __sync_synchronize() diff --git a/deps/oblib/src/rpc/pnio/r0/debug.c b/deps/oblib/src/rpc/pnio/r0/debug.c index 5b55936b1..5aa505a76 100644 --- a/deps/oblib/src/rpc/pnio/r0/debug.c +++ b/deps/oblib/src/rpc/pnio/r0/debug.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern void delay_warn(const char* msg, int64_t start_us, int64_t warn_us); extern void eloop_delay_warn(int64_t start_us, int64_t warn_us); extern void reset_eloop_time_stat(); diff --git a/deps/oblib/src/rpc/pnio/r0/debug.h b/deps/oblib/src/rpc/pnio/r0/debug.h index b5a318791..b178cbbe0 100644 --- a/deps/oblib/src/rpc/pnio/r0/debug.h +++ b/deps/oblib/src/rpc/pnio/r0/debug.h @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ struct stat_time_guard_t { int64_t start; diff --git a/deps/oblib/src/rpc/pnio/r0/define.c b/deps/oblib/src/rpc/pnio/r0/define.c index 2787f364c..d80eba39a 100644 --- a/deps/oblib/src/rpc/pnio/r0/define.c +++ b/deps/oblib/src/rpc/pnio/r0/define.c @@ -1 +1,13 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern void __unused(void* p, ...); diff --git a/deps/oblib/src/rpc/pnio/r0/define.h b/deps/oblib/src/rpc/pnio/r0/define.h index 4fd779d4d..58db96096 100644 --- a/deps/oblib/src/rpc/pnio/r0/define.h +++ b/deps/oblib/src/rpc/pnio/r0/define.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif diff --git a/deps/oblib/src/rpc/pnio/r0/format.c b/deps/oblib/src/rpc/pnio/r0/format.c index 6db01525c..fecd794d7 100644 --- a/deps/oblib/src/rpc/pnio/r0/format.c +++ b/deps/oblib/src/rpc/pnio/r0/format.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + void format_init(format_t* f, int64_t limit) { f->limit = limit; f->pos = 0; diff --git a/deps/oblib/src/rpc/pnio/r0/format.h b/deps/oblib/src/rpc/pnio/r0/format.h index f5c95614d..efb9da56c 100644 --- a/deps/oblib/src/rpc/pnio/r0/format.h +++ b/deps/oblib/src/rpc/pnio/r0/format.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include typedef struct format_t { int64_t limit; diff --git a/deps/oblib/src/rpc/pnio/r0/futex.c b/deps/oblib/src/rpc/pnio/r0/futex.c index 147f61241..f39b3a1d8 100644 --- a/deps/oblib/src/rpc/pnio/r0/futex.c +++ b/deps/oblib/src/rpc/pnio/r0/futex.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #ifdef futex #define rk_futex(...) futex(__VA_ARGS__) diff --git a/deps/oblib/src/rpc/pnio/r0/futex.h b/deps/oblib/src/rpc/pnio/r0/futex.h index c3a94edbe..81be5559e 100644 --- a/deps/oblib/src/rpc/pnio/r0/futex.h +++ b/deps/oblib/src/rpc/pnio/r0/futex.h @@ -1,2 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern int rk_futex_wake(int *p, int val); extern int rk_futex_wait(int *p, int val, const struct timespec *timeout); diff --git a/deps/oblib/src/rpc/pnio/r0/get_us.c b/deps/oblib/src/rpc/pnio/r0/get_us.c index 1e2677ae7..da1aa51e9 100644 --- a/deps/oblib/src/rpc/pnio/r0/get_us.c +++ b/deps/oblib/src/rpc/pnio/r0/get_us.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include int64_t rk_get_us() { struct timeval tv; diff --git a/deps/oblib/src/rpc/pnio/r0/get_us.h b/deps/oblib/src/rpc/pnio/r0/get_us.h index ad2cd437b..0c8a48fa6 100644 --- a/deps/oblib/src/rpc/pnio/r0/get_us.h +++ b/deps/oblib/src/rpc/pnio/r0/get_us.h @@ -1,2 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern int64_t rk_get_us(); extern int64_t rk_get_corse_us(); diff --git a/deps/oblib/src/rpc/pnio/r0/log.c b/deps/oblib/src/rpc/pnio/r0/log.c index 44d745665..e9e0cd9ee 100644 --- a/deps/oblib/src/rpc/pnio/r0/log.c +++ b/deps/oblib/src/rpc/pnio/r0/log.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + __thread format_t g_log_fbuf = { sizeof(g_log_fbuf.buf), 0, "" }; #include void do_log(int level, const char* file, int lineno, const char* func, const char* format, ...) { diff --git a/deps/oblib/src/rpc/pnio/r0/log.h b/deps/oblib/src/rpc/pnio/r0/log.h index f341151be..4416f2ac9 100644 --- a/deps/oblib/src/rpc/pnio/r0/log.h +++ b/deps/oblib/src/rpc/pnio/r0/log.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/deps/oblib/src/rpc/pnio/test/test-basic.c b/deps/oblib/src/rpc/pnio/test/test-basic.c index 295625bf3..fc8efac77 100644 --- a/deps/oblib/src/rpc/pnio/test/test-basic.c +++ b/deps/oblib/src/rpc/pnio/test/test-basic.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "interface/pkt-nio.h" #include diff --git a/deps/oblib/src/rpc/pnio/test/test-cfifo.c b/deps/oblib/src/rpc/pnio/test/test-cfifo.c index 58a6f5b9d..c06479316 100644 --- a/deps/oblib/src/rpc/pnio/test/test-cfifo.c +++ b/deps/oblib/src/rpc/pnio/test/test-cfifo.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "interface/pkt-nio.h" #include diff --git a/deps/oblib/src/rpc/pnio/test/test-group.c b/deps/oblib/src/rpc/pnio/test/test-group.c index fc1f94068..0a9a5a74e 100644 --- a/deps/oblib/src/rpc/pnio/test/test-group.c +++ b/deps/oblib/src/rpc/pnio/test/test-group.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + const char* usage = "./usage:\n" "./test-multi all\n" "dest=127.0.0.1 stress_thread=1 ./test-multi client\n" diff --git a/deps/oblib/src/rpc/pnio/test/test-nio.cpp b/deps/oblib/src/rpc/pnio/test/test-nio.cpp index 212d08a57..97185250b 100644 --- a/deps/oblib/src/rpc/pnio/test/test-nio.cpp +++ b/deps/oblib/src/rpc/pnio/test/test-nio.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + const char* _usage = "io=1 client=1 server='' ./test-nio run\n"; #include "cpp/rpc_interface.h" #include "cpp/sync_resp_cb.h" diff --git a/deps/oblib/unittest/lib/cbtree/test_key_btree.cpp b/deps/oblib/unittest/lib/cbtree/test_key_btree.cpp index e69de29bb..7e2ac4ba4 100644 --- a/deps/oblib/unittest/lib/cbtree/test_key_btree.cpp +++ b/deps/oblib/unittest/lib/cbtree/test_key_btree.cpp @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ diff --git a/mittest/logservice/env/mock_ob_locality_manager.h b/mittest/logservice/env/mock_ob_locality_manager.h index e94cb57c5..e0c08bb02 100644 --- a/mittest/logservice/env/mock_ob_locality_manager.h +++ b/mittest/logservice/env/mock_ob_locality_manager.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "storage/ob_locality_manager.h" namespace oceanbase diff --git a/mittest/logservice/env/mock_ob_meta_reporter.h b/mittest/logservice/env/mock_ob_meta_reporter.h index b45c89121..658588925 100644 --- a/mittest/logservice/env/mock_ob_meta_reporter.h +++ b/mittest/logservice/env/mock_ob_meta_reporter.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OCEANBASE_MITTEST_MOCK_OB_META_REPORTER_ #define OCEANBASE_MITTEST_MOCK_OB_META_REPORTER_ diff --git a/mittest/multi_replica/env/ob_fast_bootstrap.h b/mittest/multi_replica/env/ob_fast_bootstrap.h index 2cad96cce..8aa81e8a9 100644 --- a/mittest/multi_replica/env/ob_fast_bootstrap.h +++ b/mittest/multi_replica/env/ob_fast_bootstrap.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #pragma once #include "lib/ob_define.h" diff --git a/mittest/simple_server/rewrite_function_for_test_big_tx_data.cpp b/mittest/simple_server/rewrite_function_for_test_big_tx_data.cpp index 2a9b4febb..c60d0aece 100644 --- a/mittest/simple_server/rewrite_function_for_test_big_tx_data.cpp +++ b/mittest/simple_server/rewrite_function_for_test_big_tx_data.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "storage/tx_table/ob_tx_table_iterator.h" #include "storage/tx/ob_tx_data_define.h" #include "storage/tx/ob_trans_part_ctx.h" diff --git a/mittest/simple_server/storage_ha/test_transfer_common_fun.h b/mittest/simple_server/storage_ha/test_transfer_common_fun.h index 7ed457630..4342ea73f 100644 --- a/mittest/simple_server/storage_ha/test_transfer_common_fun.h +++ b/mittest/simple_server/storage_ha/test_transfer_common_fun.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #pragma once #include "lib/ob_errno.h" diff --git a/mittest/simple_server/test_big_tx_data.cpp b/mittest/simple_server/test_big_tx_data.cpp index 41b385806..89a6f0cb9 100644 --- a/mittest/simple_server/test_big_tx_data.cpp +++ b/mittest/simple_server/test_big_tx_data.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/src/logservice/libobcdc/src/ob_cdc_msg_convert.h b/src/logservice/libobcdc/src/ob_cdc_msg_convert.h index 9d975389e..650d353f6 100644 --- a/src/logservice/libobcdc/src/ob_cdc_msg_convert.h +++ b/src/logservice/libobcdc/src/ob_cdc_msg_convert.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OCEANBASE_CDC_MSG_CONVERT_H__ #define OCEANBASE_CDC_MSG_CONVERT_H__ diff --git a/src/logservice/libobcdc/src/ob_log_schema_getter.h b/src/logservice/libobcdc/src/ob_log_schema_getter.h index abed217e3..6f66c2bf1 100644 --- a/src/logservice/libobcdc/src/ob_log_schema_getter.h +++ b/src/logservice/libobcdc/src/ob_log_schema_getter.h @@ -1,11 +1,13 @@ /** + * Copyright (c) 2023 OceanBase * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PubL v2 for more details. - * - * SchemaGetter */ #ifndef OCEANBASE_LIBOBCDC_SCHEMA_GETTER_H__ diff --git a/src/logservice/libobcdc/src/ob_log_server_priority.cpp b/src/logservice/libobcdc/src/ob_log_server_priority.cpp index 3e5bb1c55..e5fe70388 100644 --- a/src/logservice/libobcdc/src/ob_log_server_priority.cpp +++ b/src/logservice/libobcdc/src/ob_log_server_priority.cpp @@ -1,11 +1,13 @@ /** + * Copyright (c) 2023 OceanBase * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PubL v2 for more details. - * - * Server priority definition */ #include "ob_log_server_priority.h" diff --git a/src/logservice/libobcdc/tests/demo/obcdc_dlopen.cpp b/src/logservice/libobcdc/tests/demo/obcdc_dlopen.cpp index fd3347e76..554016291 100644 --- a/src/logservice/libobcdc/tests/demo/obcdc_dlopen.cpp +++ b/src/logservice/libobcdc/tests/demo/obcdc_dlopen.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include diff --git a/src/objit/src/dummy.cpp b/src/objit/src/dummy.cpp index e69de29bb..7e2ac4ba4 100644 --- a/src/objit/src/dummy.cpp +++ b/src/objit/src/dummy.cpp @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ diff --git a/src/objit/src/expr/string_cmp.cpp b/src/objit/src/expr/string_cmp.cpp index ab34dc363..fe18b75cc 100644 --- a/src/objit/src/expr/string_cmp.cpp +++ b/src/objit/src/expr/string_cmp.cpp @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #include #include #include diff --git a/src/observer/net/ob_net_endpoint_ingress_rpc_processor.h b/src/observer/net/ob_net_endpoint_ingress_rpc_processor.h index 7f17fc026..6892720c2 100644 --- a/src/observer/net/ob_net_endpoint_ingress_rpc_processor.h +++ b/src/observer/net/ob_net_endpoint_ingress_rpc_processor.h @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OCEANBASE_ENDPOINT_INGRESS_RPC_PROCESSOR_H_ #define OCEANBASE_ENDPOINT_INGRESS_RPC_PROCESSOR_H_ diff --git a/src/observer/table/htable_filter_lex.cxx b/src/observer/table/htable_filter_lex.cxx index c8c44507b..9fabb444b 100644 --- a/src/observer/table/htable_filter_lex.cxx +++ b/src/observer/table/htable_filter_lex.cxx @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #line 2 "../../../src/observer/table/htable_filter_lex.cxx" #line 7 "../../../src/observer/table/htable_filter_lex.lxx" #define USING_LOG_PREFIX SERVER diff --git a/src/observer/table/htable_filter_lex.hxx b/src/observer/table/htable_filter_lex.hxx index b5ca4afee..b136d212b 100644 --- a/src/observer/table/htable_filter_lex.hxx +++ b/src/observer/table/htable_filter_lex.hxx @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef ob_hfilter_HEADER_H #define ob_hfilter_HEADER_H 1 #define ob_hfilter_IN_HEADER 1 diff --git a/src/observer/table/htable_filter_tab.cxx b/src/observer/table/htable_filter_tab.cxx index 76466a1a0..ba0214f65 100644 --- a/src/observer/table/htable_filter_tab.cxx +++ b/src/observer/table/htable_filter_tab.cxx @@ -1,46 +1,14 @@ - -/* A Bison parser, made by GNU Bison 2.4.1. */ - -/* Skeleton implementation for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* As a special exception, you may create a larger work that contains - part or all of the Bison parser skeleton and distribute that work - under terms of your choice, so long as that work isn't itself a - parser generator using the skeleton or a modified version thereof - as a parser skeleton. Alternatively, if you modify or redistribute - the parser skeleton itself, you may (at your option) remove this - special exception, which will cause the skeleton and the resulting - Bison output files to be licensed under the GNU General Public - License without this special exception. - - This special exception was added by the Free Software Foundation in - version 2.2 of Bison. */ - -/* C LALR(1) parser skeleton written by Richard Stallman, by - simplifying the original so-called "semantic" parser. */ - -/* All symbols defined below should begin with yy or YY, to avoid - infringing on user name space. This should be done even for local - variables, as they might otherwise be expanded by user macros. - There are some unavoidable exceptions within include files to - define necessary library symbols; they are noted "INFRINGES ON - USER NAME SPACE" below. */ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ /* Identify Bison output. */ #define YYBISON 1 diff --git a/src/observer/table/htable_filter_tab.hxx b/src/observer/table/htable_filter_tab.hxx index be3522564..3a12293c0 100644 --- a/src/observer/table/htable_filter_tab.hxx +++ b/src/observer/table/htable_filter_tab.hxx @@ -1,37 +1,14 @@ - -/* A Bison parser, made by GNU Bison 2.4.1. */ - -/* Skeleton interface for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* As a special exception, you may create a larger work that contains - part or all of the Bison parser skeleton and distribute that work - under terms of your choice, so long as that work isn't itself a - parser generator using the skeleton or a modified version thereof - as a parser skeleton. Alternatively, if you modify or redistribute - the parser skeleton itself, you may (at your option) remove this - special exception, which will cause the skeleton and the resulting - Bison output files to be licensed under the GNU General Public - License without this special exception. - - This special exception was added by the Free Software Foundation in - version 2.2 of Bison. */ - +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ /* Tokens. */ #ifndef YYTOKENTYPE diff --git a/src/observer/virtual_table/ob_all_virtual_kvcache_store_memblock.cpp b/src/observer/virtual_table/ob_all_virtual_kvcache_store_memblock.cpp index e2fe15ee7..0ea7c7dbb 100644 --- a/src/observer/virtual_table/ob_all_virtual_kvcache_store_memblock.cpp +++ b/src/observer/virtual_table/ob_all_virtual_kvcache_store_memblock.cpp @@ -1,14 +1,14 @@ -// Copyright (c) 2022 OceanBase -// Authors: -// lvling <> -// OceanBase is licensed under Mulan PubL v2. -// You can use this software according to the terms and conditions of the Mulan PubL v2. -// You may obtain a copy of Mulan PubL v2 at: -// http://license.coscl.org.cn/MulanPubL-2.0 -// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, -// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, -// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. -// See the Mulan PubL v2 for more details. +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #include "observer/virtual_table/ob_all_virtual_kvcache_store_memblock.h" diff --git a/src/observer/virtual_table/ob_all_virtual_kvcache_store_memblock.h b/src/observer/virtual_table/ob_all_virtual_kvcache_store_memblock.h index 38b24f8fe..a9a24c866 100644 --- a/src/observer/virtual_table/ob_all_virtual_kvcache_store_memblock.h +++ b/src/observer/virtual_table/ob_all_virtual_kvcache_store_memblock.h @@ -1,14 +1,14 @@ -// Copyright (c) 2022 OceanBase -// Authors: -// lvling <> -// OceanBase is licensed under Mulan PubL v2. -// You can use this software according to the terms and conditions of the Mulan PubL v2. -// You may obtain a copy of Mulan PubL v2 at: -// http://license.coscl.org.cn/MulanPubL-2.0 -// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, -// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, -// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. -// See the Mulan PubL v2 for more details. +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_ALL_VIRTUAL_KVCACHE_STORE_MEMBLOCK_H_ #define OB_ALL_VIRTUAL_KVCACHE_STORE_MEMBLOCK_H_ diff --git a/src/observer/virtual_table/ob_all_virtual_mds_event_history.cpp b/src/observer/virtual_table/ob_all_virtual_mds_event_history.cpp index be6b86753..966b231fb 100644 --- a/src/observer/virtual_table/ob_all_virtual_mds_event_history.cpp +++ b/src/observer/virtual_table/ob_all_virtual_mds_event_history.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "ob_all_virtual_mds_event_history.h" #include "lib/container/ob_tuple.h" #include "lib/function/ob_function.h" diff --git a/src/observer/virtual_table/ob_all_virtual_mds_node_stat.cpp b/src/observer/virtual_table/ob_all_virtual_mds_node_stat.cpp index 9afd60ffc..244f0cfc3 100644 --- a/src/observer/virtual_table/ob_all_virtual_mds_node_stat.cpp +++ b/src/observer/virtual_table/ob_all_virtual_mds_node_stat.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "ob_all_virtual_mds_node_stat.h" #include "lib/container/ob_tuple.h" #include "lib/function/ob_function.h" diff --git a/src/observer/virtual_table/ob_all_virtual_sql_plan.cpp b/src/observer/virtual_table/ob_all_virtual_sql_plan.cpp index 96fddc299..ce4d189d4 100644 --- a/src/observer/virtual_table/ob_all_virtual_sql_plan.cpp +++ b/src/observer/virtual_table/ob_all_virtual_sql_plan.cpp @@ -1,7 +1,14 @@ -// Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// Author: -// zhenling.zzg -// this file defines implementation of __all_virtual_sql_plan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #include "sql/plan_cache/ob_cache_object_factory.h" #include "share/schema/ob_schema_getter_guard.h" diff --git a/src/observer/virtual_table/ob_all_virtual_sql_plan.h b/src/observer/virtual_table/ob_all_virtual_sql_plan.h index 8b87646f6..92af5c62b 100644 --- a/src/observer/virtual_table/ob_all_virtual_sql_plan.h +++ b/src/observer/virtual_table/ob_all_virtual_sql_plan.h @@ -1,7 +1,15 @@ -// Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// Author: -// zhenling.zzg -// this file defines interface of __all_virtual_sql_plan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SRC_OBSERVER_VIRTUAL_SQL_PLAN_H_ #define SRC_OBSERVER_VIRTUAL_SQL_PLAN_H_ diff --git a/src/observer/virtual_table/ob_all_virtual_tx_scheduler_stat.h b/src/observer/virtual_table/ob_all_virtual_tx_scheduler_stat.h index 266f060e3..b27242910 100644 --- a/src/observer/virtual_table/ob_all_virtual_tx_scheduler_stat.h +++ b/src/observer/virtual_table/ob_all_virtual_tx_scheduler_stat.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OB_ALL_VIRTUAL_TX_SCHEDULER_STAT_H_ #define OB_ALL_VIRTUAL_TX_SCHEDULER_STAT_H_ diff --git a/src/observer/virtual_table/ob_mds_event_buffer.h b/src/observer/virtual_table/ob_mds_event_buffer.h index 00d94f9dd..750776125 100644 --- a/src/observer/virtual_table/ob_mds_event_buffer.h +++ b/src/observer/virtual_table/ob_mds_event_buffer.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef VEITUAL_TABLE_OB_MDS_EVENT_BUFFER_H #define VEITUAL_TABLE_OB_MDS_EVENT_BUFFER_H diff --git a/src/pl/sys_package/ob_dbms_user_define_rule.cpp b/src/pl/sys_package/ob_dbms_user_define_rule.cpp index a2375ad6a..23ca495a2 100644 --- a/src/pl/sys_package/ob_dbms_user_define_rule.cpp +++ b/src/pl/sys_package/ob_dbms_user_define_rule.cpp @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX PL diff --git a/src/pl/sys_package/ob_dbms_user_define_rule.h b/src/pl/sys_package/ob_dbms_user_define_rule.h index 910aea79f..b33bc2a61 100644 --- a/src/pl/sys_package/ob_dbms_user_define_rule.h +++ b/src/pl/sys_package/ob_dbms_user_define_rule.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OCEANBASE_SRC_PL_SYS_PACKAGE_DBMS_QUERY_REWRITE_H_ #define OCEANBASE_SRC_PL_SYS_PACKAGE_DBMS_QUERY_REWRITE_H_ diff --git a/src/pl/sys_package/ob_dbms_xplan.h b/src/pl/sys_package/ob_dbms_xplan.h index dfccb571e..44e6e8e18 100644 --- a/src/pl/sys_package/ob_dbms_xplan.h +++ b/src/pl/sys_package/ob_dbms_xplan.h @@ -1,9 +1,15 @@ -// (C) Copyright 2020 Alibaba Inc. All Rights Reserved. -// Authors: -// zhenling.zzg <> -// Normalizer: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OB_DBMS_XPLAN_H #define OB_DBMS_XPLAN_H diff --git a/src/share/cache/ob_kvcache_pre_warmer.cpp b/src/share/cache/ob_kvcache_pre_warmer.cpp index 01b430323..ef5dfc978 100644 --- a/src/share/cache/ob_kvcache_pre_warmer.cpp +++ b/src/share/cache/ob_kvcache_pre_warmer.cpp @@ -1,6 +1,14 @@ -// Copyright 2022 Alibaba Inc. All Rights Reserved. -// Author: -// lvling <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #include "ob_kvcache_pre_warmer.h" diff --git a/src/share/cache/ob_kvcache_pre_warmer.h b/src/share/cache/ob_kvcache_pre_warmer.h index b04528bc3..7a341263f 100644 --- a/src/share/cache/ob_kvcache_pre_warmer.h +++ b/src/share/cache/ob_kvcache_pre_warmer.h @@ -1,6 +1,14 @@ -// Copyright 2022 Alibaba Inc. All Rights Reserved. -// Author: -// lvling <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OCEANBASE_COMMON_KVCACHE_PRE_WARMER_H_ #define OCEANBASE_COMMON_KVCACHE_PRE_WARMER_H_ diff --git a/src/share/cache/ob_vtable_event_recycle_buffer.h b/src/share/cache/ob_vtable_event_recycle_buffer.h index 217888a9b..b7ef6a792 100644 --- a/src/share/cache/ob_vtable_event_recycle_buffer.h +++ b/src/share/cache/ob_vtable_event_recycle_buffer.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SHARE_CACHE_OB_VTABLE_EVENT_RECYCLE_BUFFER_H #define SHARE_CACHE_OB_VTABLE_EVENT_RECYCLE_BUFFER_H diff --git a/src/share/mysql_errno.h b/src/share/mysql_errno.h index def119c9d..8b1bf6739 100644 --- a/src/share/mysql_errno.h +++ b/src/share/mysql_errno.h @@ -1,15 +1,3 @@ -/** - * Copyright (c) 2021 OceanBase - * OceanBase CE is licensed under Mulan PubL v2. - * You can use this software according to the terms and conditions of the Mulan PubL v2. - * You may obtain a copy of Mulan PubL v2 at: - * http://license.coscl.org.cn/MulanPubL-2.0 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, - * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, - * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. - * See the Mulan PubL v2 for more details. - */ - #ifndef _MYSQL_ERRNO_H #define _MYSQL_ERRNO_H 1 diff --git a/src/share/ob_table_range.cpp b/src/share/ob_table_range.cpp index b6dcd0958..060db03da 100644 --- a/src/share/ob_table_range.cpp +++ b/src/share/ob_table_range.cpp @@ -1,7 +1,13 @@ -/* - * (C) Copyright 2022 Alipay Inc. All Rights Reserved. - * Authors: - * Danling <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #include "ob_table_range.h" diff --git a/src/share/ob_table_range.h b/src/share/ob_table_range.h index 873107d98..003f61671 100644 --- a/src/share/ob_table_range.h +++ b/src/share/ob_table_range.h @@ -1,7 +1,13 @@ -/* - * (C) Copyright 2022 Alipay Inc. All Rights Reserved. - * Authors: - * Danling <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #ifndef OCEANBASE_SHARE_OB_TABLE_RANGE_H_ diff --git a/src/share/ob_tablet_meta_table_compaction_operator.cpp b/src/share/ob_tablet_meta_table_compaction_operator.cpp index c66651ef2..46f23f2fa 100644 --- a/src/share/ob_tablet_meta_table_compaction_operator.cpp +++ b/src/share/ob_tablet_meta_table_compaction_operator.cpp @@ -1,13 +1,15 @@ -/* -* Copyright (c) 2021 Ant Group CO., Ltd. -* OceanBase is licensed under Mulan PubL v1. -* You can use this software according to the terms and conditions of the Mulan PubL v1. -* You may obtain a copy of Mulan PubL v1 at: http://license.coscl.org.cn/MulanPubL-1.0 -* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, -* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, -* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. -* See the Mulan PubL v1 for more details. -*/ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SHARE #include "ob_tablet_meta_table_compaction_operator.h" #include "lib/mysqlclient/ob_mysql_result.h" diff --git a/src/share/ob_tablet_meta_table_compaction_operator.h b/src/share/ob_tablet_meta_table_compaction_operator.h index f886ed04f..5363eb80b 100644 --- a/src/share/ob_tablet_meta_table_compaction_operator.h +++ b/src/share/ob_tablet_meta_table_compaction_operator.h @@ -1,13 +1,15 @@ -/* -* Copyright (c) 2021 Ant Group CO., Ltd. -* OceanBase is licensed under Mulan PubL v1. -* You can use this software according to the terms and conditions of the Mulan PubL v1. -* You may obtain a copy of Mulan PubL v1 at: http://license.coscl.org.cn/MulanPubL-1.0 -* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, -* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, -* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. -* See the Mulan PubL v1 for more details. -*/ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OCEANBASE_SHARE_OB_TABLET_MEDIUM_SNAPSHOT_TABLE_OPERATOR_ #define OCEANBASE_SHARE_OB_TABLET_MEDIUM_SNAPSHOT_TABLE_OPERATOR_ diff --git a/src/share/resource_manager/ob_group_list.h b/src/share/resource_manager/ob_group_list.h index 0c3edf5ac..f0485d8a1 100644 --- a/src/share/resource_manager/ob_group_list.h +++ b/src/share/resource_manager/ob_group_list.h @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ // [0, 100) for inner group diff --git a/src/share/resource_manager/ob_resource_col_mapping_rule_manager.cpp b/src/share/resource_manager/ob_resource_col_mapping_rule_manager.cpp index 2b46c0667..452213002 100644 --- a/src/share/resource_manager/ob_resource_col_mapping_rule_manager.cpp +++ b/src/share/resource_manager/ob_resource_col_mapping_rule_manager.cpp @@ -1,7 +1,14 @@ -// Copyright 2022 Alibaba Inc. All Rights Reserved. -// Author: -// -// This file is for resource mapping rule cache module. +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ diff --git a/src/share/resource_manager/ob_resource_col_mapping_rule_manager.h b/src/share/resource_manager/ob_resource_col_mapping_rule_manager.h index 8d7353aa3..698ac505c 100644 --- a/src/share/resource_manager/ob_resource_col_mapping_rule_manager.h +++ b/src/share/resource_manager/ob_resource_col_mapping_rule_manager.h @@ -1,7 +1,14 @@ -// Copyright 2022 Alibaba Inc. All Rights Reserved. -// Author: -// -// This file is for resource mapping rule cache module. +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef _OB_SHARE_RESOURCE_PLAN_OB_RESOURCE_MAPPING_RULE_CACHE_H_ diff --git a/src/sql/das/ob_das_spatial_index_lookup_op.cpp b/src/sql/das/ob_das_spatial_index_lookup_op.cpp index 0042adf6f..4900ce817 100644 --- a/src/sql/das/ob_das_spatial_index_lookup_op.cpp +++ b/src/sql/das/ob_das_spatial_index_lookup_op.cpp @@ -1,13 +1,15 @@ /** - * Copyright 2014-2016 Alibaba Inc. All Rights Reserved. - * - * Date: 2022年3月19日 - * - * ob_das_spatial_index_lookup_op.cpp is for … - * - * Authors: - * shengle<> + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ + #define USING_LOG_PREFIX SQL_DAS #include "sql/das/ob_das_spatial_index_lookup_op.h" #include "sql/engine/ob_exec_context.h" diff --git a/src/sql/das/ob_das_spatial_index_lookup_op.h b/src/sql/das/ob_das_spatial_index_lookup_op.h index 5c5305ded..ef11b2d62 100644 --- a/src/sql/das/ob_das_spatial_index_lookup_op.h +++ b/src/sql/das/ob_das_spatial_index_lookup_op.h @@ -1,13 +1,15 @@ /** - * Copyright 2014-2016 Alibaba Inc. All Rights Reserved. - * - * Date: 2022年3月19日 - * - * ob_das_group_scan_op.h is for … - * - * Authors: - * xiaoyi.xy<> + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ + #ifndef OBDEV_SRC_SQL_DAS_OB_DAS_SPATIAL_INDEX_LOOKUP_OP_H_ #define OBDEV_SRC_SQL_DAS_OB_DAS_SPATIAL_INDEX_LOOKUP_OP_H_ #include "sql/das/ob_das_scan_op.h" diff --git a/src/sql/engine/cmd/ob_load_data_direct_impl.cpp b/src/sql/engine/cmd/ob_load_data_direct_impl.cpp index 40a6a9ed3..b5b980a03 100644 --- a/src/sql/engine/cmd/ob_load_data_direct_impl.cpp +++ b/src/sql/engine/cmd/ob_load_data_direct_impl.cpp @@ -1,6 +1,14 @@ -// Copyright (c) 2022-present Oceanbase Inc. All Rights Reserved. -// Author: -// suzhi.yt <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_ENG diff --git a/src/sql/engine/cmd/ob_load_data_direct_impl.h b/src/sql/engine/cmd/ob_load_data_direct_impl.h index 12090afc9..386b919c1 100644 --- a/src/sql/engine/cmd/ob_load_data_direct_impl.h +++ b/src/sql/engine/cmd/ob_load_data_direct_impl.h @@ -1,6 +1,14 @@ -// Copyright (c) 2022-present Oceanbase Inc. All Rights Reserved. -// Author: -// suzhi.yt <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #pragma once diff --git a/src/sql/engine/cmd/ob_table_direct_insert_ctx.cpp b/src/sql/engine/cmd/ob_table_direct_insert_ctx.cpp index 85e6a922d..971701359 100644 --- a/src/sql/engine/cmd/ob_table_direct_insert_ctx.cpp +++ b/src/sql/engine/cmd/ob_table_direct_insert_ctx.cpp @@ -1,6 +1,14 @@ -// Copyright (c) 2022-present Oceanbase Inc. All Rights Reserved. -// Author: -// yuya.yu <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_ENG diff --git a/src/sql/engine/cmd/ob_table_direct_insert_ctx.h b/src/sql/engine/cmd/ob_table_direct_insert_ctx.h index 914a8ed87..c80682849 100644 --- a/src/sql/engine/cmd/ob_table_direct_insert_ctx.h +++ b/src/sql/engine/cmd/ob_table_direct_insert_ctx.h @@ -1,6 +1,14 @@ -// Copyright (c) 2022-present Oceanbase Inc. All Rights Reserved. -// Author: -// yuya.yu <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #pragma once diff --git a/src/sql/engine/cmd/ob_table_direct_insert_service.cpp b/src/sql/engine/cmd/ob_table_direct_insert_service.cpp index 8d010bd92..b7dcb0c81 100644 --- a/src/sql/engine/cmd/ob_table_direct_insert_service.cpp +++ b/src/sql/engine/cmd/ob_table_direct_insert_service.cpp @@ -1,6 +1,14 @@ -// Copyright (c) 2022-present Oceanbase Inc. All Rights Reserved. -// Author: -// yuya.yu <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_ENG diff --git a/src/sql/engine/cmd/ob_table_direct_insert_service.h b/src/sql/engine/cmd/ob_table_direct_insert_service.h index 78854cb1c..5695d1f5c 100644 --- a/src/sql/engine/cmd/ob_table_direct_insert_service.h +++ b/src/sql/engine/cmd/ob_table_direct_insert_service.h @@ -1,6 +1,14 @@ -// Copyright (c) 2022-present Oceanbase Inc. All Rights Reserved. -// Author: -// yuya.yu <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #pragma once diff --git a/src/sql/engine/dml/ob_link_dml_op.cpp b/src/sql/engine/dml/ob_link_dml_op.cpp index 2d292ba90..11bb34072 100644 --- a/src/sql/engine/dml/ob_link_dml_op.cpp +++ b/src/sql/engine/dml/ob_link_dml_op.cpp @@ -1,6 +1,14 @@ -// Copyright 2010-2022 Alibaba Inc. All Rights Reserved. -// Author: -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_ENG diff --git a/src/sql/engine/dml/ob_link_dml_op.h b/src/sql/engine/dml/ob_link_dml_op.h index 21950489a..4c9cae80b 100644 --- a/src/sql/engine/dml/ob_link_dml_op.h +++ b/src/sql/engine/dml/ob_link_dml_op.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OCEANBASE_SQL_ENGINE_LINK_DML_OP_H_ #define OCEANBASE_SQL_ENGINE_LINK_DML_OP_H_ diff --git a/src/sql/engine/dml/ob_link_op.cpp b/src/sql/engine/dml/ob_link_op.cpp index 94e01b9a9..26c695efc 100644 --- a/src/sql/engine/dml/ob_link_op.cpp +++ b/src/sql/engine/dml/ob_link_op.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SQL_ENG #include "sql/engine/dml/ob_link_dml_op.h" diff --git a/src/sql/engine/dml/ob_link_op.h b/src/sql/engine/dml/ob_link_op.h index 616674f08..c0a1968b7 100644 --- a/src/sql/engine/dml/ob_link_op.h +++ b/src/sql/engine/dml/ob_link_op.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OCEANBASE_SQL_ENGINE_LINK_OP_H_ #define OCEANBASE_SQL_ENGINE_LINK_OP_H_ diff --git a/src/sql/engine/expr/ob_expr_encrypt.cpp b/src/sql/engine/expr/ob_expr_encrypt.cpp index 540d84c26..b0a1188e5 100644 --- a/src/sql/engine/expr/ob_expr_encrypt.cpp +++ b/src/sql/engine/expr/ob_expr_encrypt.cpp @@ -1,6 +1,14 @@ -// Copyright 2015-2022 Alibaba Inc. All Rights Reserved. -// Author: -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_EXE #include "ob_expr_encrypt.h" diff --git a/src/sql/engine/expr/ob_expr_encrypt.h b/src/sql/engine/expr/ob_expr_encrypt.h index 65c60e90a..5339eb1a8 100644 --- a/src/sql/engine/expr/ob_expr_encrypt.h +++ b/src/sql/engine/expr/ob_expr_encrypt.h @@ -1,6 +1,14 @@ -// Copyright 2015-2022 Alibaba Inc. All Rights Reserved. -// Author: -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef SRC_SQL_ENGINE_EXPR_OB_EXPR_ENCRYPT_H_ #define SRC_SQL_ENGINE_EXPR_OB_EXPR_ENCRYPT_H_ diff --git a/src/sql/engine/expr/ob_expr_format_bytes.cpp b/src/sql/engine/expr/ob_expr_format_bytes.cpp index 40246df14..b80cd5861 100644 --- a/src/sql/engine/expr/ob_expr_format_bytes.cpp +++ b/src/sql/engine/expr/ob_expr_format_bytes.cpp @@ -1,11 +1,15 @@ -// (C) Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// version 2 as published by the Free Software Foundation. -// Version: $Id$ -// Authors: -// yaojing <> -// This file is for implementation of func expr_format_bytes +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SQL_ENG #include "sql/engine/expr/ob_expr_format_bytes.h" #include "sql/engine/expr/ob_expr_operator.h" diff --git a/src/sql/engine/expr/ob_expr_format_bytes.h b/src/sql/engine/expr/ob_expr_format_bytes.h index 18971d5f4..d514868d3 100644 --- a/src/sql/engine/expr/ob_expr_format_bytes.h +++ b/src/sql/engine/expr/ob_expr_format_bytes.h @@ -1,15 +1,15 @@ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * ob_expr_format_bytes.h is for what ... - * - * Authors: - * Author yaojing <> - * +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ + #ifndef _OB_SQL_EXPR_FORMAT_BYTES_H #define _OB_SQL_EXPR_FORMAT_BYTES_H diff --git a/src/sql/engine/expr/ob_expr_format_pico_time.cpp b/src/sql/engine/expr/ob_expr_format_pico_time.cpp index 642ad02db..415fb0134 100644 --- a/src/sql/engine/expr/ob_expr_format_pico_time.cpp +++ b/src/sql/engine/expr/ob_expr_format_pico_time.cpp @@ -1,11 +1,15 @@ -// (C) Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// version 2 as published by the Free Software Foundation. -// Version: $Id$ -// Authors: -// yaojing <> -// This file is for implementation of func expr_format_pico_time +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SQL_ENG #include "sql/engine/expr/ob_expr_format_pico_time.h" #include "sql/engine/expr/ob_expr_operator.h" diff --git a/src/sql/engine/expr/ob_expr_format_pico_time.h b/src/sql/engine/expr/ob_expr_format_pico_time.h index 49e596f0b..a965656a5 100644 --- a/src/sql/engine/expr/ob_expr_format_pico_time.h +++ b/src/sql/engine/expr/ob_expr_format_pico_time.h @@ -1,15 +1,15 @@ -/* - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * ob_expr_format_pico_time.h is for what ... - * - * Authors: - * Author yaojing <> - * +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ + #ifndef _OB_SQL_EXPR_FORMAT_PICO_TIME_H #define _OB_SQL_EXPR_FORMAT_PICO_TIME_H diff --git a/src/sql/engine/expr/ob_expr_name_const.cpp b/src/sql/engine/expr/ob_expr_name_const.cpp index 6b51106b6..612ee6ab4 100644 --- a/src/sql/engine/expr/ob_expr_name_const.cpp +++ b/src/sql/engine/expr/ob_expr_name_const.cpp @@ -1,13 +1,14 @@ -// (C) Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// version 2 as published by the Free Software Foundation. -// Version: $Id$ -// Authors: -// yebangyu <> -// Normalizer: -// yebangyu <> -// This file is for implementation of func get_user_var +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_ENG diff --git a/src/sql/engine/expr/ob_expr_name_const.h b/src/sql/engine/expr/ob_expr_name_const.h index 0079cbf80..4edb5d301 100644 --- a/src/sql/engine/expr/ob_expr_name_const.h +++ b/src/sql/engine/expr/ob_expr_name_const.h @@ -1,13 +1,14 @@ -// (C) Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// version 2 as published by the Free Software Foundation. -// Version: $Id$ -// Authors: -// yebangyu <> -// Normalizer: -// yebangyu <> -// This file is for declaration of func get_user_var +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef _OCEANBASE_SQL_OB_EXPR_NAME_CONST_H_ #define _OCEANBASE_SQL_OB_EXPR_NAME_CONST_H_ diff --git a/src/sql/engine/px/datahub/components/ob_dh_init_channel.cpp b/src/sql/engine/px/datahub/components/ob_dh_init_channel.cpp index a1ff63643..0a0968ce8 100644 --- a/src/sql/engine/px/datahub/components/ob_dh_init_channel.cpp +++ b/src/sql/engine/px/datahub/components/ob_dh_init_channel.cpp @@ -1,7 +1,15 @@ - // Copyright 1999-2022 Alibaba Inc. All Rights Reserved. -// Author: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SQL_ENG #include "sql/engine/px/datahub/components/ob_dh_barrier.h" #include "sql/engine/px/datahub/ob_dh_msg_ctx.h" diff --git a/src/sql/engine/px/datahub/components/ob_dh_init_channel.h b/src/sql/engine/px/datahub/components/ob_dh_init_channel.h index a9111dd73..e69a45820 100644 --- a/src/sql/engine/px/datahub/components/ob_dh_init_channel.h +++ b/src/sql/engine/px/datahub/components/ob_dh_init_channel.h @@ -1,7 +1,15 @@ -// Copyright 1999-2022 Alibaba Inc. All Rights Reserved. -// Author: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef __OB_SQL_ENG_PX_DH_INIT_CHANNEL_H__ #define __OB_SQL_ENG_PX_DH_INIT_CHANNEL_H__ #include "sql/engine/px/datahub/ob_dh_msg.h" diff --git a/src/sql/engine/px/datahub/components/ob_dh_opt_stats_gather.cpp b/src/sql/engine/px/datahub/components/ob_dh_opt_stats_gather.cpp index f334f5d91..43bd0b2b6 100644 --- a/src/sql/engine/px/datahub/components/ob_dh_opt_stats_gather.cpp +++ b/src/sql/engine/px/datahub/components/ob_dh_opt_stats_gather.cpp @@ -1,7 +1,14 @@ -// Copyright 1999-2022 Alibaba Inc. All Rights Reserved. -// Author: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_ENG #include "sql/engine/px/datahub/components/ob_dh_opt_stats_gather.h" diff --git a/src/sql/engine/px/datahub/components/ob_dh_opt_stats_gather.h b/src/sql/engine/px/datahub/components/ob_dh_opt_stats_gather.h index e415d9cb3..4e6781fec 100644 --- a/src/sql/engine/px/datahub/components/ob_dh_opt_stats_gather.h +++ b/src/sql/engine/px/datahub/components/ob_dh_opt_stats_gather.h @@ -1,7 +1,14 @@ -// Copyright 1999-2022 Alibaba Inc. All Rights Reserved. -// Author: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef __OB_SQL_ENG_PX_DH_OPT_STATS_GATHER_H__ #define __OB_SQL_ENG_PX_DH_OPT_STATS_GATHER_H__ diff --git a/src/sql/engine/px/datahub/ob_dh_msg.cpp b/src/sql/engine/px/datahub/ob_dh_msg.cpp index e976b57d5..7e2ac4ba4 100644 --- a/src/sql/engine/px/datahub/ob_dh_msg.cpp +++ b/src/sql/engine/px/datahub/ob_dh_msg.cpp @@ -1,4 +1,11 @@ -// Copyright 1999-2020 Alibaba Inc. All Rights Reserved. -// Author: -// - +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ diff --git a/src/sql/engine/table/ob_external_table_access_service.cpp b/src/sql/engine/table/ob_external_table_access_service.cpp index 36567dc3f..4ba3aecbc 100644 --- a/src/sql/engine/table/ob_external_table_access_service.cpp +++ b/src/sql/engine/table/ob_external_table_access_service.cpp @@ -1,6 +1,14 @@ -// Copyright 2014 Alibaba Inc. All Rights Reserved. -// Author: -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL #include "ob_external_table_access_service.h" diff --git a/src/sql/engine/table/ob_external_table_access_service.h b/src/sql/engine/table/ob_external_table_access_service.h index f6e4548e7..3decdafb7 100644 --- a/src/sql/engine/table/ob_external_table_access_service.h +++ b/src/sql/engine/table/ob_external_table_access_service.h @@ -1,6 +1,14 @@ -// Copyright 2014 Alibaba Inc. All Rights Reserved. -// Author: -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_EXTERNAL_TABLE_ACCESS_SERVICE_H_ diff --git a/src/sql/engine/table/ob_link_scan_op.h b/src/sql/engine/table/ob_link_scan_op.h index 0b702497a..42f636937 100644 --- a/src/sql/engine/table/ob_link_scan_op.h +++ b/src/sql/engine/table/ob_link_scan_op.h @@ -1,6 +1,14 @@ -// Copyright 2021 Alibaba Inc. All Rights Reserved. -// Author: -// shanting <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OCEANBASE_SQL_ENGINE_LINK_SCAN_OP_H_ #define OCEANBASE_SQL_ENGINE_LINK_SCAN_OP_H_ diff --git a/src/sql/monitor/flt/ob_flt_span_mgr.cpp b/src/sql/monitor/flt/ob_flt_span_mgr.cpp index e19f5e32e..33d4c3b9d 100644 --- a/src/sql/monitor/flt/ob_flt_span_mgr.cpp +++ b/src/sql/monitor/flt/ob_flt_span_mgr.cpp @@ -1,9 +1,14 @@ -// Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// Author: -// -// Normalizer: -// -// this file defines implementation of full link trace span manager +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SERVER diff --git a/src/sql/monitor/flt/ob_flt_span_mgr.h b/src/sql/monitor/flt/ob_flt_span_mgr.h index 6b7efd8b2..c6eba031d 100644 --- a/src/sql/monitor/flt/ob_flt_span_mgr.h +++ b/src/sql/monitor/flt/ob_flt_span_mgr.h @@ -1,17 +1,15 @@ /** - * (C) Copyright 2014 Alibaba Inc. All Rights Reserved. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * version 2 as published by the Free Software Foundation. - * - * Version: - * - * Date: 05/12/2022 - * - * Authors: - * guoyun.lgy<> + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ + #ifndef OCEANBASE_SQL_OB_FLT_SPAN_MGR_H_ #define OCEANBASE_SQL_OB_FLT_SPAN_MGR_H_ diff --git a/src/sql/monitor/flt/ob_flt_utils.cpp b/src/sql/monitor/flt/ob_flt_utils.cpp index 8ba8b2a5f..b187667d5 100644 --- a/src/sql/monitor/flt/ob_flt_utils.cpp +++ b/src/sql/monitor/flt/ob_flt_utils.cpp @@ -1,9 +1,14 @@ -// Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// Author: -// -// Normalizer: -// -// this file defines implementation of full link trace span manager +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SERVER diff --git a/src/sql/monitor/flt/ob_flt_utils.h b/src/sql/monitor/flt/ob_flt_utils.h index 3639323cc..202f31e83 100644 --- a/src/sql/monitor/flt/ob_flt_utils.h +++ b/src/sql/monitor/flt/ob_flt_utils.h @@ -1,17 +1,15 @@ /** - * (C) Copyright 2014 Alibaba Inc. All Rights Reserved. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * version 2 as published by the Free Software Foundation. - * - * Version: - * - * Date: 05/12/2022 - * - * Authors: - * guoyun.lgy<> + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ + #ifndef OCEANBASE_SQL_OB_FLT_UTILS_H_ #define OCEANBASE_SQL_OB_FLT_UTILS_H_ diff --git a/src/sql/monitor/ob_plan_info_manager.cpp b/src/sql/monitor/ob_plan_info_manager.cpp index ade15da40..7e59092d8 100644 --- a/src/sql/monitor/ob_plan_info_manager.cpp +++ b/src/sql/monitor/ob_plan_info_manager.cpp @@ -1,7 +1,14 @@ -// Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// Author: -// zhenling.zzg -// this file defines implementation of plan info manager +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL diff --git a/src/sql/monitor/ob_plan_info_manager.h b/src/sql/monitor/ob_plan_info_manager.h index 0ff5a09fc..edee6b06d 100644 --- a/src/sql/monitor/ob_plan_info_manager.h +++ b/src/sql/monitor/ob_plan_info_manager.h @@ -1,7 +1,14 @@ -// Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// Author: -// zhenling.zzg -// this file defines interface of plan info manager +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef SRC_OBSERVER_PLAN_INFO_MGR_H_ #define SRC_OBSERVER_PLAN_INFO_MGR_H_ diff --git a/src/sql/monitor/ob_sql_plan.cpp b/src/sql/monitor/ob_sql_plan.cpp index 988e03bdb..fddeb182a 100644 --- a/src/sql/monitor/ob_sql_plan.cpp +++ b/src/sql/monitor/ob_sql_plan.cpp @@ -1,7 +1,14 @@ -// Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// Author: -// zhenling.zzg -// this file defines implementation of sql plan manager +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL diff --git a/src/sql/monitor/ob_sql_plan.h b/src/sql/monitor/ob_sql_plan.h index e93a45f0f..8e237b863 100644 --- a/src/sql/monitor/ob_sql_plan.h +++ b/src/sql/monitor/ob_sql_plan.h @@ -1,7 +1,14 @@ -// Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// Author: -// zhenling.zzg -// this file defines interface of sql plan manager +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef SRC_OBSERVER_SQL_PLAN_H_ #define SRC_OBSERVER_SQL_PLAN_H_ diff --git a/src/sql/ob_optimizer_trace_impl.cpp b/src/sql/ob_optimizer_trace_impl.cpp index 21ce205bd..5641c93a1 100644 --- a/src/sql/ob_optimizer_trace_impl.cpp +++ b/src/sql/ob_optimizer_trace_impl.cpp @@ -1,9 +1,15 @@ -// (C) Copyright 2019 Alibaba Inc. All Rights Reserved. -// Authors: -// zhenling.zzg <> -// Normalizer: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SQL #include "lib/utility/ob_utility.h" #include "lib/string/ob_sql_string.h" diff --git a/src/sql/ob_optimizer_trace_impl.h b/src/sql/ob_optimizer_trace_impl.h index fa6aa5f39..53a335293 100644 --- a/src/sql/ob_optimizer_trace_impl.h +++ b/src/sql/ob_optimizer_trace_impl.h @@ -1,9 +1,13 @@ /** - * ob_optimizer_trace_impl.h - * - * Authors: - * zhenling.zzg <> - * + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #ifndef _OB_OPTIMIZER_TRACE_IMPL_H diff --git a/src/sql/optimizer/ob_log_link_dml.cpp b/src/sql/optimizer/ob_log_link_dml.cpp index 190fe38b8..f4f637084 100644 --- a/src/sql/optimizer/ob_log_link_dml.cpp +++ b/src/sql/optimizer/ob_log_link_dml.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SQL_OPT #include "sql/optimizer/ob_log_link_dml.h" diff --git a/src/sql/optimizer/ob_log_link_dml.h b/src/sql/optimizer/ob_log_link_dml.h index 643335425..ad9a70d2e 100644 --- a/src/sql/optimizer/ob_log_link_dml.h +++ b/src/sql/optimizer/ob_log_link_dml.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OCEANBASE_SQL_OB_LOG_LINK_DML_H #define OCEANBASE_SQL_OB_LOG_LINK_DML_H diff --git a/src/sql/optimizer/ob_log_link_scan.cpp b/src/sql/optimizer/ob_log_link_scan.cpp index 0aa7dd813..9aa99aff2 100644 --- a/src/sql/optimizer/ob_log_link_scan.cpp +++ b/src/sql/optimizer/ob_log_link_scan.cpp @@ -1,6 +1,14 @@ -// Copyright 2010-2018 Alibaba Inc. All Rights Reserved. -// Author: -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_OPT #include "sql/optimizer/ob_log_link_scan.h" diff --git a/src/sql/optimizer/ob_log_link_scan.h b/src/sql/optimizer/ob_log_link_scan.h index eec2bcbdc..f146ca87b 100644 --- a/src/sql/optimizer/ob_log_link_scan.h +++ b/src/sql/optimizer/ob_log_link_scan.h @@ -1,6 +1,14 @@ -// Copyright 2010-2018 Alibaba Inc. All Rights Reserved. -// Author: -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OCEANBASE_SQL_OB_LOG_LINK_SCAN_H #define OCEANBASE_SQL_OB_LOG_LINK_SCAN_H diff --git a/src/sql/optimizer/ob_log_optimizer_stats_gathering.cpp b/src/sql/optimizer/ob_log_optimizer_stats_gathering.cpp index daebb54b3..b8dd1149d 100644 --- a/src/sql/optimizer/ob_log_optimizer_stats_gathering.cpp +++ b/src/sql/optimizer/ob_log_optimizer_stats_gathering.cpp @@ -1,13 +1,13 @@ /** - * (C) 2016-2022 Alibaba Group Holding Limited. - * - * ob_log_optimizer_stats_gathering.cpp - * - * Author: - * - * - * Created Time: Fri 12 Aug 2022 10:01:10 AM CST - * + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #define USING_LOG_PREFIX SQL_OPT diff --git a/src/sql/optimizer/ob_log_optimizer_stats_gathering.h b/src/sql/optimizer/ob_log_optimizer_stats_gathering.h index a9364a9bc..135dc905a 100644 --- a/src/sql/optimizer/ob_log_optimizer_stats_gathering.h +++ b/src/sql/optimizer/ob_log_optimizer_stats_gathering.h @@ -1,13 +1,13 @@ /** - * (C) 2016-2022 Alibaba Group Holding Limited. - * - * ob_log_optimizer_stats_gathering.h - * - * Author: - * - * - * Created Time: Fri 12 Aug 2022 10:01:10 AM CST - * + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #ifndef OB_LOG_OPTIMIZER_STAT_GATHERING_H_ diff --git a/src/sql/plan_cache/ob_prepare_stmt_struct.h b/src/sql/plan_cache/ob_prepare_stmt_struct.h index eb15ca128..9808cfc83 100644 --- a/src/sql/plan_cache/ob_prepare_stmt_struct.h +++ b/src/sql/plan_cache/ob_prepare_stmt_struct.h @@ -1,10 +1,13 @@ -/* - * (C) 2007-2010 Alibaba Group Holding Limited. - * - * Version: $Id: ob_prepare_stmt_struct.h 10/27/2016 04:13:54 PM - * - * Authors: - * hualong <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #ifndef OCEANBASE_SQL_PLAN_CACHE_OB_PREPARE_STMT_STRUCT_H_ diff --git a/src/sql/plan_cache/ob_values_table_compression.cpp b/src/sql/plan_cache/ob_values_table_compression.cpp index 065117892..6f53bf9ba 100644 --- a/src/sql/plan_cache/ob_values_table_compression.cpp +++ b/src/sql/plan_cache/ob_values_table_compression.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SQL_PC #include "sql/plan_cache/ob_values_table_compression.h" #include "sql/plan_cache/ob_plan_cache_struct.h" diff --git a/src/sql/resolver/cmd/ob_call_procedure_stmt.cpp b/src/sql/resolver/cmd/ob_call_procedure_stmt.cpp index ec1a96680..4d0cb2ee6 100644 --- a/src/sql/resolver/cmd/ob_call_procedure_stmt.cpp +++ b/src/sql/resolver/cmd/ob_call_procedure_stmt.cpp @@ -1,19 +1,13 @@ /** - * (C) Copyright 2014 Alibaba Inc. All Rights Reserved. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * version 2 as published by the Free Software Foundation. - * - * Version: - * - * Date: 2018年2月28日 - * - * ob_call_procedure_stmt.cpp is for … - * - * Authors: - * Author Name - * RuDian<> + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #define USING_LOG_PREFIX SQL_RESV diff --git a/src/sql/resolver/cmd/ob_call_procedure_stmt.h b/src/sql/resolver/cmd/ob_call_procedure_stmt.h index ff9fca3ac..c32caa019 100644 --- a/src/sql/resolver/cmd/ob_call_procedure_stmt.h +++ b/src/sql/resolver/cmd/ob_call_procedure_stmt.h @@ -1,19 +1,13 @@ /** - * (C) Copyright 2014 Alibaba Inc. All Rights Reserved. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * version 2 as published by the Free Software Foundation. - * - * Version: - * - * Date: 2017年1月17日 - * - * ob_call_procedure_stmt.h is for … - * - * Authors: - * Author Name - * RuDian<> + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #ifndef OCEANBASE_SRC_SQL_RESOLVER_DDL_OB_CALL_PROCEDURE_STMT_H_ diff --git a/src/sql/resolver/dml/ob_stmt_expr_visitor.cpp b/src/sql/resolver/dml/ob_stmt_expr_visitor.cpp index fcfe19218..28c9ff9ad 100644 --- a/src/sql/resolver/dml/ob_stmt_expr_visitor.cpp +++ b/src/sql/resolver/dml/ob_stmt_expr_visitor.cpp @@ -1,9 +1,15 @@ -// (C) Copyright 2021 Alibaba Inc. All Rights Reserved. -// Authors: -// link.zt <> -// Normalizer: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SQL_RESV #include "sql/rewrite/ob_transform_utils.h" #include "ob_stmt_expr_visitor.h" diff --git a/src/sql/resolver/dml/ob_stmt_expr_visitor.h b/src/sql/resolver/dml/ob_stmt_expr_visitor.h index 394165866..a75867932 100644 --- a/src/sql/resolver/dml/ob_stmt_expr_visitor.h +++ b/src/sql/resolver/dml/ob_stmt_expr_visitor.h @@ -1,9 +1,14 @@ -// (C) Copyright 2021 Alibaba Inc. All Rights Reserved. -// Authors: -// link.zt <> -// Normalizer: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_STMT_EXPR_VISITOR_H #define OB_STMT_EXPR_VISITOR_H diff --git a/src/sql/resolver/expr/ob_shared_expr_resolver.cpp b/src/sql/resolver/expr/ob_shared_expr_resolver.cpp index 6a8658e08..660ecbd1f 100644 --- a/src/sql/resolver/expr/ob_shared_expr_resolver.cpp +++ b/src/sql/resolver/expr/ob_shared_expr_resolver.cpp @@ -1,9 +1,15 @@ -// (C) Copyright 2021 Alibaba Inc. All Rights Reserved. -// Authors: -// link.zt <> -// Normalizer: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX SQL_RESV #include "common/ob_smart_call.h" #include "sql/resolver/expr/ob_shared_expr_resolver.h" diff --git a/src/sql/resolver/expr/ob_shared_expr_resolver.h b/src/sql/resolver/expr/ob_shared_expr_resolver.h index 7910d6b06..e83f2ef21 100644 --- a/src/sql/resolver/expr/ob_shared_expr_resolver.h +++ b/src/sql/resolver/expr/ob_shared_expr_resolver.h @@ -1,9 +1,14 @@ -// (C) Copyright 2022 Alibaba Inc. All Rights Reserved. -// Authors: -// link.zt <> -// Normalizer: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SHARED_EXPR_RESOLVER_H #define OB_SHARED_EXPR_RESOLVER_H diff --git a/src/sql/rewrite/ob_transform_dblink.cpp b/src/sql/rewrite/ob_transform_dblink.cpp index 7a3ed58c4..0bef29eba 100644 --- a/src/sql/rewrite/ob_transform_dblink.cpp +++ b/src/sql/rewrite/ob_transform_dblink.cpp @@ -1,9 +1,15 @@ -/* - * ob_transform_dblink.cpp - * - * Created on: 2022-6-24 - * Author: zhenling.zzg +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ + #define USING_LOG_PREFIX SQL_REWRITE #include "sql/rewrite/ob_transform_dblink.h" #include "sql/resolver/expr/ob_raw_expr.h" diff --git a/src/sql/rewrite/ob_transform_dblink.h b/src/sql/rewrite/ob_transform_dblink.h index 366cbdb92..26f09d374 100644 --- a/src/sql/rewrite/ob_transform_dblink.h +++ b/src/sql/rewrite/ob_transform_dblink.h @@ -1,8 +1,13 @@ -/* - * ob_transform_dblink.h - * - * Created on: 2022-6-24 - * Author: zhenling.zzg +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #ifndef OB_TRANSFORM_DBLINK_H_ diff --git a/src/sql/rewrite/ob_union_find.cpp b/src/sql/rewrite/ob_union_find.cpp index f6cf80011..a858be981 100644 --- a/src/sql/rewrite/ob_union_find.cpp +++ b/src/sql/rewrite/ob_union_find.cpp @@ -1,6 +1,14 @@ -// Copyright (c) 2015 Alibaba Inc. All Rights Reserved. -// Author: -// zhenling.zzg +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_REWRITE #include "sql/rewrite/ob_union_find.h" diff --git a/src/sql/rewrite/ob_union_find.h b/src/sql/rewrite/ob_union_find.h index 20ade40a5..c0344f08b 100644 --- a/src/sql/rewrite/ob_union_find.h +++ b/src/sql/rewrite/ob_union_find.h @@ -1,6 +1,14 @@ -// Copyright (c) 2015, 2016 Alibaba Inc. All Rights Reserved. -// Author: -// zhenling.zzg +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OCEANBASE_SQL_REWRITE_OB_UNION_FIND_ diff --git a/src/sql/session/ob_sess_info_verify.cpp b/src/sql/session/ob_sess_info_verify.cpp index a94bd4033..2d91907eb 100644 --- a/src/sql/session/ob_sess_info_verify.cpp +++ b/src/sql/session/ob_sess_info_verify.cpp @@ -1,7 +1,14 @@ -// Copyright 2010-2016 Alibaba Inc. All Rights Reserved. -// Author: -// yaojing -// this file defines implementation of session info verification +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SERVER diff --git a/src/sql/session/ob_sess_info_verify.h b/src/sql/session/ob_sess_info_verify.h index a19955b60..fbe6ce389 100644 --- a/src/sql/session/ob_sess_info_verify.h +++ b/src/sql/session/ob_sess_info_verify.h @@ -1,17 +1,15 @@ /** - * (C) Copyright 2014 Alibaba Inc. All Rights Reserved. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * version 2 as published by the Free Software Foundation. - * - * Version: - * - * Date: 04/14/2023 - * - * Authors: - * yaojing <> + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ + #ifndef OCEANBASE_SQL_OB_SESS_INFO_VERI_H_ #define OCEANBASE_SQL_OB_SESS_INFO_VERI_H_ diff --git a/src/sql/udr/ob_udr_analyzer.cpp b/src/sql/udr/ob_udr_analyzer.cpp index bf3bf1144..72ddb73f1 100644 --- a/src/sql/udr/ob_udr_analyzer.cpp +++ b/src/sql/udr/ob_udr_analyzer.cpp @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_QRR diff --git a/src/sql/udr/ob_udr_analyzer.h b/src/sql/udr/ob_udr_analyzer.h index 3631aab89..b9df2178c 100644 --- a/src/sql/udr/ob_udr_analyzer.h +++ b/src/sql/udr/ob_udr_analyzer.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SQL_UDR_OB_UDR_ANALYZER_H_ diff --git a/src/sql/udr/ob_udr_callback.cpp b/src/sql/udr/ob_udr_callback.cpp index 2fdb61cc8..6b412369e 100644 --- a/src/sql/udr/ob_udr_callback.cpp +++ b/src/sql/udr/ob_udr_callback.cpp @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_QRR #include "sql/udr/ob_udr_callback.h" diff --git a/src/sql/udr/ob_udr_callback.h b/src/sql/udr/ob_udr_callback.h index b9d4cfd5a..f5cc39da5 100644 --- a/src/sql/udr/ob_udr_callback.h +++ b/src/sql/udr/ob_udr_callback.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SQL_UDR_OB_UDR_CALLBACK_H_ diff --git a/src/sql/udr/ob_udr_context.h b/src/sql/udr/ob_udr_context.h index 70ceee077..e654169fe 100644 --- a/src/sql/udr/ob_udr_context.h +++ b/src/sql/udr/ob_udr_context.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SQL_UDR_OB_UDR_CONTEXT_H_ diff --git a/src/sql/udr/ob_udr_item.cpp b/src/sql/udr/ob_udr_item.cpp index f11205755..cfd4e15f1 100644 --- a/src/sql/udr/ob_udr_item.cpp +++ b/src/sql/udr/ob_udr_item.cpp @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_QRR diff --git a/src/sql/udr/ob_udr_item.h b/src/sql/udr/ob_udr_item.h index 686df8e96..eff7a2da0 100644 --- a/src/sql/udr/ob_udr_item.h +++ b/src/sql/udr/ob_udr_item.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SQL_UDR_OB_UDR_ITEM_H_ diff --git a/src/sql/udr/ob_udr_item_mgr.cpp b/src/sql/udr/ob_udr_item_mgr.cpp index 675e5b4af..e7f3aadee 100644 --- a/src/sql/udr/ob_udr_item_mgr.cpp +++ b/src/sql/udr/ob_udr_item_mgr.cpp @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_QRR diff --git a/src/sql/udr/ob_udr_item_mgr.h b/src/sql/udr/ob_udr_item_mgr.h index d38e90ef5..b31df4a4a 100644 --- a/src/sql/udr/ob_udr_item_mgr.h +++ b/src/sql/udr/ob_udr_item_mgr.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SQL_UDR_OB_UDR_ITEM_MGR_H_ diff --git a/src/sql/udr/ob_udr_mgr.cpp b/src/sql/udr/ob_udr_mgr.cpp index 4bbea3dca..40480e637 100644 --- a/src/sql/udr/ob_udr_mgr.cpp +++ b/src/sql/udr/ob_udr_mgr.cpp @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_QRR diff --git a/src/sql/udr/ob_udr_mgr.h b/src/sql/udr/ob_udr_mgr.h index 9efde3871..7eb970363 100644 --- a/src/sql/udr/ob_udr_mgr.h +++ b/src/sql/udr/ob_udr_mgr.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SQL_UDR_OB_UDR_MGR_H_ diff --git a/src/sql/udr/ob_udr_sql_service.cpp b/src/sql/udr/ob_udr_sql_service.cpp index 2c93d7ba0..ff5677d6c 100644 --- a/src/sql/udr/ob_udr_sql_service.cpp +++ b/src/sql/udr/ob_udr_sql_service.cpp @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_QRR #include "share/inner_table/ob_inner_table_schema_constants.h" diff --git a/src/sql/udr/ob_udr_sql_service.h b/src/sql/udr/ob_udr_sql_service.h index 61c1db793..42449495e 100644 --- a/src/sql/udr/ob_udr_sql_service.h +++ b/src/sql/udr/ob_udr_sql_service.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SQL_UDR_OB_UDR_SQL_SERVICE_H_ #define OB_SQL_UDR_OB_UDR_SQL_SERVICE_H_ diff --git a/src/sql/udr/ob_udr_struct.cpp b/src/sql/udr/ob_udr_struct.cpp index d93de1022..56c4cd045 100644 --- a/src/sql/udr/ob_udr_struct.cpp +++ b/src/sql/udr/ob_udr_struct.cpp @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #define USING_LOG_PREFIX SQL_QRR diff --git a/src/sql/udr/ob_udr_struct.h b/src/sql/udr/ob_udr_struct.h index 529f00285..055966788 100644 --- a/src/sql/udr/ob_udr_struct.h +++ b/src/sql/udr/ob_udr_struct.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SQL_UDR_OB_UDR_STRUCT_H_ diff --git a/src/sql/udr/ob_udr_utils.h b/src/sql/udr/ob_udr_utils.h index d22036d97..cd279e587 100644 --- a/src/sql/udr/ob_udr_utils.h +++ b/src/sql/udr/ob_udr_utils.h @@ -1,8 +1,14 @@ -// Copyright 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// LuoFan -// Normalizer: -// LuoFan +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OB_SQL_UDR_OB_UDR_UTILS_H_ diff --git a/src/storage/direct_load/ob_direct_load_mem_context.cpp b/src/storage/direct_load/ob_direct_load_mem_context.cpp index e50fd3d0b..62c56bc8a 100644 --- a/src/storage/direct_load/ob_direct_load_mem_context.cpp +++ b/src/storage/direct_load/ob_direct_load_mem_context.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define USING_LOG_PREFIX STORAGE #include "storage/direct_load/ob_direct_load_mem_context.h" diff --git a/src/storage/ls/ob_ls_switch_checker.cpp b/src/storage/ls/ob_ls_switch_checker.cpp index ad0f2cb10..7e4258d17 100644 --- a/src/storage/ls/ob_ls_switch_checker.cpp +++ b/src/storage/ls/ob_ls_switch_checker.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "ob_ls_switch_checker.h" #include "lib/ob_errno.h" #include "ob_ls.h" diff --git a/src/storage/multi_data_source/adapter_define/mds_dump_node.cpp b/src/storage/multi_data_source/adapter_define/mds_dump_node.cpp index c62535e34..c257ce478 100644 --- a/src/storage/multi_data_source/adapter_define/mds_dump_node.cpp +++ b/src/storage/multi_data_source/adapter_define/mds_dump_node.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "mds_dump_node.h" #include "lib/list/ob_dlist.h" #include "lib/ob_errno.h" diff --git a/src/storage/multi_data_source/adapter_define/mds_dump_node.h b/src/storage/multi_data_source/adapter_define/mds_dump_node.h index 65cb49235..22e76bc1e 100644 --- a/src/storage/multi_data_source/adapter_define/mds_dump_node.h +++ b/src/storage/multi_data_source/adapter_define/mds_dump_node.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SHARE_STORAGE_MULTI_DATA_SOURCE_MDSDUMPNODE_H #define SHARE_STORAGE_MULTI_DATA_SOURCE_MDSDUMPNODE_H #include "lib/allocator/ob_allocator.h" diff --git a/src/storage/multi_data_source/buffer_ctx.cpp b/src/storage/multi_data_source/buffer_ctx.cpp index 11e0cfe7f..6b481d786 100644 --- a/src/storage/multi_data_source/buffer_ctx.cpp +++ b/src/storage/multi_data_source/buffer_ctx.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "buffer_ctx.h" #include "lib/ob_define.h" #include "lib/ob_errno.h" diff --git a/src/storage/multi_data_source/compile_utility/map_type_index_in_tuple.h b/src/storage/multi_data_source/compile_utility/map_type_index_in_tuple.h index 68fcce45e..94d38bf21 100644 --- a/src/storage/multi_data_source/compile_utility/map_type_index_in_tuple.h +++ b/src/storage/multi_data_source/compile_utility/map_type_index_in_tuple.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SHARE_STORAGE_MULTI_DATA_SOURCE_MAP_TYPE_INDEX_IN_TUPLE_H #define SHARE_STORAGE_MULTI_DATA_SOURCE_MAP_TYPE_INDEX_IN_TUPLE_H diff --git a/src/storage/multi_data_source/compile_utility/mds_dummy_key.h b/src/storage/multi_data_source/compile_utility/mds_dummy_key.h index 4ca32f1f3..f70b3b7c7 100644 --- a/src/storage/multi_data_source/compile_utility/mds_dummy_key.h +++ b/src/storage/multi_data_source/compile_utility/mds_dummy_key.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SHARE_STORAGE_MULTI_DATA_SOURCE_COMPILE_UTILITY_MDS_DUMMYKEY_H #define SHARE_STORAGE_MULTI_DATA_SOURCE_COMPILE_UTILITY_MDS_DUMMYKEY_H #include "lib/list/ob_dlist.h" diff --git a/src/storage/multi_data_source/compile_utility/mds_register.h b/src/storage/multi_data_source/compile_utility/mds_register.h index abe306a45..830c323ef 100644 --- a/src/storage/multi_data_source/compile_utility/mds_register.h +++ b/src/storage/multi_data_source/compile_utility/mds_register.h @@ -1,4 +1,15 @@ -/************************register header file with class defination********************************/ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + // the MDS FRAME must know the defination of some class type to generate legal CPP codes, including: // 1. DATA type defination if you need multi source data support. // 1.a. KEY type defination if you need multi source data support with multi key support. diff --git a/src/storage/multi_data_source/mds_node.cpp b/src/storage/multi_data_source/mds_node.cpp index 88f65be9b..d31681fe1 100644 --- a/src/storage/multi_data_source/mds_node.cpp +++ b/src/storage/multi_data_source/mds_node.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "mds_node.h" #include "lib/atomic/ob_atomic.h" #include "lib/list/ob_dlist.h" diff --git a/src/storage/multi_data_source/mds_table_handler.cpp b/src/storage/multi_data_source/mds_table_handler.cpp index e62b059b7..1712834fe 100644 --- a/src/storage/multi_data_source/mds_table_handler.cpp +++ b/src/storage/multi_data_source/mds_table_handler.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "mds_table_handler.h" #include "lib/lock/ob_small_spin_lock.h" #include "lib/ob_errno.h" diff --git a/src/storage/multi_data_source/mds_table_handler.h b/src/storage/multi_data_source/mds_table_handler.h index 712174663..9b44951fb 100644 --- a/src/storage/multi_data_source/mds_table_handler.h +++ b/src/storage/multi_data_source/mds_table_handler.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SRC_STORAGE_MULTI_DATA_SOURCE_MDS_TABLE_HANDLER_H #define SRC_STORAGE_MULTI_DATA_SOURCE_MDS_TABLE_HANDLER_H #include "lib/lock/ob_small_spin_lock.h" diff --git a/src/storage/multi_data_source/mds_writer.cpp b/src/storage/multi_data_source/mds_writer.cpp index bc1c32c30..d89e3fe09 100644 --- a/src/storage/multi_data_source/mds_writer.cpp +++ b/src/storage/multi_data_source/mds_writer.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "mds_writer.h" #include "storage/tx/ob_trans_define.h" diff --git a/src/storage/multi_data_source/mds_writer.h b/src/storage/multi_data_source/mds_writer.h index 1cddad231..4ba2c3471 100644 --- a/src/storage/multi_data_source/mds_writer.h +++ b/src/storage/multi_data_source/mds_writer.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SRC_STORAGE_MULTI_DATA_SOURCE_MDS_WRITTER_H #define SRC_STORAGE_MULTI_DATA_SOURCE_MDS_WRITTER_H diff --git a/src/storage/multi_data_source/runtime_utility/common_define.h b/src/storage/multi_data_source/runtime_utility/common_define.h index 457c2076e..c2f928729 100644 --- a/src/storage/multi_data_source/runtime_utility/common_define.h +++ b/src/storage/multi_data_source/runtime_utility/common_define.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SHARE_STORAGE_MULTI_DATA_SOURCE_UTILITY_COMMON_DEFINE_H #define SHARE_STORAGE_MULTI_DATA_SOURCE_UTILITY_COMMON_DEFINE_H #include "lib/ob_errno.h" diff --git a/src/storage/multi_data_source/runtime_utility/list_helper.h b/src/storage/multi_data_source/runtime_utility/list_helper.h index 8a857856e..fbbdc9ff2 100644 --- a/src/storage/multi_data_source/runtime_utility/list_helper.h +++ b/src/storage/multi_data_source/runtime_utility/list_helper.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SRC_STORAGE_MULTI_DATA_SOURCE_UTILITY_LIST_HELPER_H #define SRC_STORAGE_MULTI_DATA_SOURCE_UTILITY_LIST_HELPER_H diff --git a/src/storage/multi_data_source/runtime_utility/mds_factory.cpp b/src/storage/multi_data_source/runtime_utility/mds_factory.cpp index ea4762770..bbf05f8bb 100644 --- a/src/storage/multi_data_source/runtime_utility/mds_factory.cpp +++ b/src/storage/multi_data_source/runtime_utility/mds_factory.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "mds_factory.h" #include "lib/ob_errno.h" #include "share/rc/ob_tenant_base.h" diff --git a/src/storage/multi_data_source/runtime_utility/mds_factory.h b/src/storage/multi_data_source/runtime_utility/mds_factory.h index 838ed7c29..94247fbd5 100644 --- a/src/storage/multi_data_source/runtime_utility/mds_factory.h +++ b/src/storage/multi_data_source/runtime_utility/mds_factory.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SHARE_STORAGE_MULTI_DATA_SOURCE_UTILITY_MDS_FACTORY_H #define SHARE_STORAGE_MULTI_DATA_SOURCE_UTILITY_MDS_FACTORY_H #include "lib/allocator/ob_malloc.h" diff --git a/src/storage/multi_data_source/runtime_utility/mds_lock.h b/src/storage/multi_data_source/runtime_utility/mds_lock.h index 3d8e1975f..fe319da6a 100644 --- a/src/storage/multi_data_source/runtime_utility/mds_lock.h +++ b/src/storage/multi_data_source/runtime_utility/mds_lock.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SHARE_STORAGE_MULTI_DATA_SOURCE_RUNTIME_UTILITY_MDS_LOCK_H #define SHARE_STORAGE_MULTI_DATA_SOURCE_RUNTIME_UTILITY_MDS_LOCK_H #include "lib/ob_define.h" diff --git a/src/storage/multi_data_source/runtime_utility/mds_retry_control.h b/src/storage/multi_data_source/runtime_utility/mds_retry_control.h index 6848a412e..b9133382d 100644 --- a/src/storage/multi_data_source/runtime_utility/mds_retry_control.h +++ b/src/storage/multi_data_source/runtime_utility/mds_retry_control.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef SHARE_STORAGE_MULTI_DATA_SOURCE_UTILITY_MDS_RETRY_CONTROL_H #define SHARE_STORAGE_MULTI_DATA_SOURCE_UTILITY_MDS_RETRY_CONTROL_H diff --git a/src/storage/multi_data_source/test/common_define.h b/src/storage/multi_data_source/test/common_define.h index 6ca1ebc49..9ec624bbe 100644 --- a/src/storage/multi_data_source/test/common_define.h +++ b/src/storage/multi_data_source/test/common_define.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef UNITTEST_STORAGE_MULTI_DATA_SOURCE_COMMON_DEFINE_H #define UNITTEST_STORAGE_MULTI_DATA_SOURCE_COMMON_DEFINE_H #include "src/share/scn.h" diff --git a/src/storage/multi_data_source/test/example_user_data_define.h b/src/storage/multi_data_source/test/example_user_data_define.h index 97aeba977..573b51cfd 100644 --- a/src/storage/multi_data_source/test/example_user_data_define.h +++ b/src/storage/multi_data_source/test/example_user_data_define.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef UNITTEST_SHARE_MULTI_DATA_SOURCE_EXAMPLE_USER_DATA_DEFINE_H #define UNITTEST_SHARE_MULTI_DATA_SOURCE_EXAMPLE_USER_DATA_DEFINE_H #include "lib/ob_errno.h" diff --git a/src/storage/multi_data_source/test/example_user_helper_define.cpp b/src/storage/multi_data_source/test/example_user_helper_define.cpp index e9c33b0ce..f2ab2b6ec 100644 --- a/src/storage/multi_data_source/test/example_user_helper_define.cpp +++ b/src/storage/multi_data_source/test/example_user_helper_define.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifdef TEST_MDS_TRANSACTION #include "example_user_helper_define.h" #include "storage/multi_data_source/mds_table_handle.h" diff --git a/src/storage/multi_data_source/test/example_user_helper_define.h b/src/storage/multi_data_source/test/example_user_helper_define.h index 96ed9f213..816c8c249 100644 --- a/src/storage/multi_data_source/test/example_user_helper_define.h +++ b/src/storage/multi_data_source/test/example_user_helper_define.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef UNITTEST_SHARE_MULTI_DATA_SOURCE_EXAMPLE_USER_HELPER_DEFINE_H #define UNITTEST_SHARE_MULTI_DATA_SOURCE_EXAMPLE_USER_HELPER_DEFINE_H #include "storage/multi_data_source/buffer_ctx.h" diff --git a/src/storage/ob_tenant_tablet_stat_mgr.cpp b/src/storage/ob_tenant_tablet_stat_mgr.cpp index 9c63ec1a2..04df96fdd 100644 --- a/src/storage/ob_tenant_tablet_stat_mgr.cpp +++ b/src/storage/ob_tenant_tablet_stat_mgr.cpp @@ -1,8 +1,15 @@ -/* - * (C) Copyright 2022 Alipay Inc. All Rights Reserved. - * Authors: - * Danling <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ + #define USING_LOG_PREFIX STORAGE #include "lib/oblog/ob_log_module.h" diff --git a/src/storage/ob_tenant_tablet_stat_mgr.h b/src/storage/ob_tenant_tablet_stat_mgr.h index 57c73b5e7..aa80dcc09 100644 --- a/src/storage/ob_tenant_tablet_stat_mgr.h +++ b/src/storage/ob_tenant_tablet_stat_mgr.h @@ -1,7 +1,13 @@ -/* - * (C) Copyright 2022 Alipay Inc. All Rights Reserved. - * Authors: - * Danling <> +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #ifndef OCEANBASE_STORAGE_TENANT_TABLET_STAT_MGR_H_ diff --git a/src/storage/tx/ob_dup_table_tablets.h b/src/storage/tx/ob_dup_table_tablets.h index ba4e614f7..c5452b023 100644 --- a/src/storage/tx/ob_dup_table_tablets.h +++ b/src/storage/tx/ob_dup_table_tablets.h @@ -1,12 +1,14 @@ -// Copyrigh(c) 2021 OceanBase -// OceanBase is licensed under Mulan PubL v2. -// You can use this software according to the terms and conditions of the Mulan PubL v2. -// You may obtain a copy of Mulan PubL v2 at: -// http://license.coscl.org.cn/MulanPubL-2.0 -// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, -// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, -// MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. -// See the Mulan PubL v2 for more details. +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #ifndef OCEANBASE_DUP_TABLE_TABLETS_H #define OCEANBASE_DUP_TABLE_TABLETS_H diff --git a/src/storage/tx/ob_tx_free_route.cpp b/src/storage/tx/ob_tx_free_route.cpp index 53506b489..e945f9b2b 100644 --- a/src/storage/tx/ob_tx_free_route.cpp +++ b/src/storage/tx/ob_tx_free_route.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "ob_trans_service.h" #include "lib/utility/serialization.h" diff --git a/src/storage/tx/ob_tx_free_route_api.h b/src/storage/tx/ob_tx_free_route_api.h index 92af4f80a..63c29053e 100644 --- a/src/storage/tx/ob_tx_free_route_api.h +++ b/src/storage/tx/ob_tx_free_route_api.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define DEF_FREE_ROUTE_API_(name) \ int txn_free_route__update_##name##_state(const uint32_t session_id, ObTxDesc *&tx, ObTxnFreeRouteCtx &ctx, const char* buf, const int64_t len, int64_t &pos); \ int txn_free_route__serialize_##name##_state(const uint32_t session_id, ObTxDesc *tx, ObTxnFreeRouteCtx &ctx, char* buf, const int64_t len, int64_t &pos); \ diff --git a/src/storage/tx/ob_tx_free_route_msg.cpp b/src/storage/tx/ob_tx_free_route_msg.cpp index 946fbeac0..d7489fe4d 100644 --- a/src/storage/tx/ob_tx_free_route_msg.cpp +++ b/src/storage/tx/ob_tx_free_route_msg.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "ob_tx_free_route_msg.h" namespace oceanbase { namespace transaction { diff --git a/src/storage/tx/ob_tx_free_route_msg.h b/src/storage/tx/ob_tx_free_route_msg.h index 7ad2253ec..44508ab4a 100644 --- a/src/storage/tx/ob_tx_free_route_msg.h +++ b/src/storage/tx/ob_tx_free_route_msg.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef OCEANBASE_TRANSACTION_OB_TX_FREE_ROUTE_MSG_ #define OCEANBASE_TRANSACTION_OB_TX_FREE_ROUTE_MSG_ #include "share/ob_define.h" diff --git a/src/storage/tx/ob_tx_free_route_rpc.cpp b/src/storage/tx/ob_tx_free_route_rpc.cpp index f86e740eb..090dcb877 100644 --- a/src/storage/tx/ob_tx_free_route_rpc.cpp +++ b/src/storage/tx/ob_tx_free_route_rpc.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "ob_trans_rpc.h" #include "share/ob_errno.h" #include "lib/oblog/ob_log.h" diff --git a/src/storage/tx/ob_tx_free_route_rpc.h b/src/storage/tx/ob_tx_free_route_rpc.h index 32c0eba45..b49e5b014 100644 --- a/src/storage/tx/ob_tx_free_route_rpc.h +++ b/src/storage/tx/ob_tx_free_route_rpc.h @@ -1,4 +1,15 @@ -//namespace oceanbase { +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + namespace obrpc { class ObTxFreeRouteCheckAliveP : public ObRpcProcessor< ObTransRpcProxy::ObRpc > diff --git a/unittest/libobcdc/log_generator.h b/unittest/libobcdc/log_generator.h index 8432a0a02..2d7cb67a4 100644 --- a/unittest/libobcdc/log_generator.h +++ b/unittest/libobcdc/log_generator.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #define USING_LOG_PREFIX OBLOG diff --git a/unittest/logservice/test_ob_arbitration_service.cpp b/unittest/logservice/test_ob_arbitration_service.cpp index eb85cbe77..85469be74 100644 --- a/unittest/logservice/test_ob_arbitration_service.cpp +++ b/unittest/logservice/test_ob_arbitration_service.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include "lib/ob_define.h" #include "rpc/obrpc/ob_net_keepalive.h" diff --git a/unittest/observer/table/test_create_executor.cpp b/unittest/observer/table/test_create_executor.cpp index d4b728a34..af57a03a4 100644 --- a/unittest/observer/table/test_create_executor.cpp +++ b/unittest/observer/table/test_create_executor.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #define private public // 获取private成员 #define protected public // 获取protect成员 diff --git a/unittest/observer/table/test_table_aggregation.cpp b/unittest/observer/table/test_table_aggregation.cpp index afc005aa7..c81ae6ace 100644 --- a/unittest/observer/table/test_table_aggregation.cpp +++ b/unittest/observer/table/test_table_aggregation.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #define private public // 获取private成员 #define protected public // 获取protect成员 diff --git a/unittest/observer/table/test_table_sess_pool.cpp b/unittest/observer/table/test_table_sess_pool.cpp index bb43bd9ae..ea6b6194a 100644 --- a/unittest/observer/table/test_table_sess_pool.cpp +++ b/unittest/observer/table/test_table_sess_pool.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #define private public // 获取私有成员 #include "observer/table/ob_table_session_pool.h" diff --git a/unittest/observer/tableapi/test_obkv_config.cpp b/unittest/observer/tableapi/test_obkv_config.cpp index d36df7bfd..432445ed2 100644 --- a/unittest/observer/tableapi/test_obkv_config.cpp +++ b/unittest/observer/tableapi/test_obkv_config.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "share/table/ob_table_config_util.h" #include "lib/time/ob_time_utility.h" #include "share/parameter/ob_parameter_macro.h" diff --git a/unittest/share/test_geo_bin.cpp b/unittest/share/test_geo_bin.cpp index e8fe5bf01..82fe4c6bf 100644 --- a/unittest/share/test_geo_bin.cpp +++ b/unittest/share/test_geo_bin.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #define BOOST_GEOMETRY_DISABLE_DEPRECATED_03_WARNING 1 #define BOOST_ALLOW_DEPRECATED_HEADERS 1 diff --git a/unittest/share/test_geo_common.cpp b/unittest/share/test_geo_common.cpp index fa17e5a57..a3809502e 100644 --- a/unittest/share/test_geo_common.cpp +++ b/unittest/share/test_geo_common.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include "lib/geo/ob_geo_common.h" #include "lib/geo/ob_geo_utils.h" diff --git a/unittest/share/test_geo_func_difference.cpp b/unittest/share/test_geo_func_difference.cpp index 9ac522499..091fdd889 100644 --- a/unittest/share/test_geo_func_difference.cpp +++ b/unittest/share/test_geo_func_difference.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/unittest/share/test_geo_func_union.cpp b/unittest/share/test_geo_func_union.cpp index fcd315eaf..e1803fc92 100644 --- a/unittest/share/test_geo_func_union.cpp +++ b/unittest/share/test_geo_func_union.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/unittest/share/test_geo_srs.cpp b/unittest/share/test_geo_srs.cpp index 06d385b0c..20c74d920 100644 --- a/unittest/share/test_geo_srs.cpp +++ b/unittest/share/test_geo_srs.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #define private public diff --git a/unittest/share/test_geo_srs_parser.cpp b/unittest/share/test_geo_srs_parser.cpp index 0fa34c3c7..1321d6a50 100644 --- a/unittest/share/test_geo_srs_parser.cpp +++ b/unittest/share/test_geo_srs_parser.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #define private public diff --git a/unittest/share/test_geo_tree.cpp b/unittest/share/test_geo_tree.cpp index 177082343..f8f385407 100644 --- a/unittest/share/test_geo_tree.cpp +++ b/unittest/share/test_geo_tree.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/unittest/share/test_s2adapter.cpp b/unittest/share/test_s2adapter.cpp index 4b42cb6b1..13dc9d4b3 100644 --- a/unittest/share/test_s2adapter.cpp +++ b/unittest/share/test_s2adapter.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #define private public diff --git a/unittest/share/test_wkt_parser.cpp b/unittest/share/test_wkt_parser.cpp index c12d62ef8..6fdc2f0c8 100644 --- a/unittest/share/test_wkt_parser.cpp +++ b/unittest/share/test_wkt_parser.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #define private public #define protected public diff --git a/unittest/share/test_xpath.cpp b/unittest/share/test_xpath.cpp index 459f2e9e2..07d19ce84 100644 --- a/unittest/share/test_xpath.cpp +++ b/unittest/share/test_xpath.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include "lib/string/ob_sql_string.h" #define private public diff --git a/unittest/share/test_xpath_filter.cpp b/unittest/share/test_xpath_filter.cpp index 3413eec3a..a58444db5 100644 --- a/unittest/share/test_xpath_filter.cpp +++ b/unittest/share/test_xpath_filter.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include "lib/string/ob_sql_string.h" #define private public diff --git a/unittest/sql/engine/expr/test_gis_dispatcher.cpp b/unittest/sql/engine/expr/test_gis_dispatcher.cpp index 5dd501591..f77b7e223 100644 --- a/unittest/sql/engine/expr/test_gis_dispatcher.cpp +++ b/unittest/sql/engine/expr/test_gis_dispatcher.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include "lib/geo/ob_geo_func_register.h" diff --git a/unittest/sql/rewrite/tmp/NODELETE.cpp b/unittest/sql/rewrite/tmp/NODELETE.cpp index 787b36e36..7e2ac4ba4 100644 --- a/unittest/sql/rewrite/tmp/NODELETE.cpp +++ b/unittest/sql/rewrite/tmp/NODELETE.cpp @@ -1 +1,11 @@ -//Do not delete this dir! +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ diff --git a/unittest/storage/compaction/test_medium_list_checker.cpp b/unittest/storage/compaction/test_medium_list_checker.cpp index 80115a853..5720a6c2e 100644 --- a/unittest/storage/compaction/test_medium_list_checker.cpp +++ b/unittest/storage/compaction/test_medium_list_checker.cpp @@ -1,8 +1,14 @@ -// Copyright 2019-2021 Alibaba Inc. All Rights Reserved. -// Author: -// -// This file defines test_medium_compaction_mgr.cpp -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #include #define private public diff --git a/unittest/storage/direct_load/test_direct_load_data_block_writer.cpp b/unittest/storage/direct_load/test_direct_load_data_block_writer.cpp index 3203d0b80..48e121f45 100644 --- a/unittest/storage/direct_load/test_direct_load_data_block_writer.cpp +++ b/unittest/storage/direct_load/test_direct_load_data_block_writer.cpp @@ -1,8 +1,15 @@ -// Copyright 2014-2014 Alibaba Inc. All Rights Reserved. -// Author: -// yiren.ly <> -// -// This file defines test_direct_load_data_block_writer.cpp +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #define private public #define protected public diff --git a/unittest/storage/direct_load/test_direct_load_index_block_writer.cpp b/unittest/storage/direct_load/test_direct_load_index_block_writer.cpp index 79d2785b2..6fb529a55 100644 --- a/unittest/storage/direct_load/test_direct_load_index_block_writer.cpp +++ b/unittest/storage/direct_load/test_direct_load_index_block_writer.cpp @@ -1,8 +1,15 @@ -// Copyright 2014-2014 Alibaba Inc. All Rights Reserved. -// Author: -// yiren.ly <> -// -// This file defines test_direct_load_data_block_writer.cpp +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #define private public #define protected public diff --git a/unittest/storage/ob_row_generate_adapter.cpp b/unittest/storage/ob_row_generate_adapter.cpp index e69de29bb..7e2ac4ba4 100644 --- a/unittest/storage/ob_row_generate_adapter.cpp +++ b/unittest/storage/ob_row_generate_adapter.cpp @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ diff --git a/unittest/storage/test_parallel_minor_dag.cpp b/unittest/storage/test_parallel_minor_dag.cpp index bd8ed4204..e928d54b8 100644 --- a/unittest/storage/test_parallel_minor_dag.cpp +++ b/unittest/storage/test_parallel_minor_dag.cpp @@ -1,7 +1,14 @@ -// Copyright (c) 2019-2021 Alibaba Inc. All Rights Reserved. -// Author: -// -// +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ #include #include diff --git a/unittest/storage/test_partition_range_splite.cpp b/unittest/storage/test_partition_range_splite.cpp index dbed4ae4c..0be0df878 100644 --- a/unittest/storage/test_partition_range_splite.cpp +++ b/unittest/storage/test_partition_range_splite.cpp @@ -1,10 +1,13 @@ /** - * (C) Copyright 2017-2020 OceanBase Inc. All Rights Reserved. - * - * test_partition_range_spliter.cpp - * - * Authors: chaser.ch - * + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ diff --git a/unittest/storage/test_tenant_tablet_stat_mgr.cpp b/unittest/storage/test_tenant_tablet_stat_mgr.cpp index 8a57ba5b1..0b7163d75 100644 --- a/unittest/storage/test_tenant_tablet_stat_mgr.cpp +++ b/unittest/storage/test_tenant_tablet_stat_mgr.cpp @@ -1,6 +1,13 @@ -/* - * test_tenant_tablet_stat_mgr.cpp - * Author: +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. */ #include diff --git a/unittest/storage/tx/it/test_register_mds.cpp b/unittest/storage/tx/it/test_register_mds.cpp index 2fb1e56e0..e57a4b689 100644 --- a/unittest/storage/tx/it/test_register_mds.cpp +++ b/unittest/storage/tx/it/test_register_mds.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #define private public diff --git a/unittest/storage/tx/it/test_tx_ctx.cpp b/unittest/storage/tx/it/test_tx_ctx.cpp index 9c5c97820..a39bf68c5 100644 --- a/unittest/storage/tx/it/test_tx_ctx.cpp +++ b/unittest/storage/tx/it/test_tx_ctx.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #define private public diff --git a/unittest/storage/tx/it/test_tx_free_route.cpp b/unittest/storage/tx/it/test_tx_free_route.cpp index 73fb9dc4a..9ef071a2f 100644 --- a/unittest/storage/tx/it/test_tx_free_route.cpp +++ b/unittest/storage/tx/it/test_tx_free_route.cpp @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2023 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include