From 41465805e3d451a8dcb9fa5f181a3b29efa88f3b Mon Sep 17 00:00:00 2001 From: 1115839967 <1115839967@qq.com> Date: Mon, 6 Dec 2021 10:24:42 +0800 Subject: [PATCH] Add mulan(#665) --- deps/oblib/src/lib/container/ob_mask_set2.h | 24 ++++++++---------- deps/oblib/src/lib/stat/ob_di_list.h | 24 ++++++++---------- deps/oblib/src/lib/stat/ob_di_tls.h | 24 ++++++++---------- .../unittest/lib/restore/test_storage_oss.cpp | 12 +++++++++ deps/oblib/unittest/rpc/mem_frag.c | 24 ++++++++---------- .../mysql/obmp_stmt_send_long_data.cpp | 25 ++++++++----------- src/observer/mysql/obmp_stmt_send_long_data.h | 25 ++++++++----------- src/observer/virtual_table/ob_all_disk_stat.h | 24 ++++++++---------- .../virtual_table/ob_all_storage_stat.h | 24 ++++++++---------- .../ob_all_virtual_backup_clean_info.cpp | 15 ++++++++--- .../ob_all_virtual_backup_clean_info.h | 15 ++++++++--- .../ob_information_kvcache_table.h | 24 ++++++++---------- .../ob_tenant_show_restore_preview.cpp | 14 ++++++++--- .../ob_tenant_show_restore_preview.h | 14 ++++++++--- .../backup/ob_backup_archive_log_scheduler.h | 17 +++++++++---- .../backup/ob_backup_backupset_scheduler.cpp | 16 ++++++++---- .../backup/ob_backup_backupset_scheduler.h | 16 ++++++++---- .../ob_cancel_backup_backup_scheduler.cpp | 15 ++++++++--- .../ob_cancel_backup_backup_scheduler.h | 15 ++++++++--- .../ob_backup_archive_log_round_stat.cpp | 14 ++++++++--- .../backup/ob_backup_archive_log_round_stat.h | 14 ++++++++--- .../backup/ob_backup_backuppiece_operator.cpp | 16 ++++++++---- .../backup/ob_backup_backuppiece_operator.h | 16 ++++++++---- .../backup/ob_backup_backupset_operator.cpp | 16 ++++++++---- src/share/backup/ob_backup_meta_store.cpp | 14 ++++++++--- src/share/backup/ob_backup_meta_store.h | 14 ++++++++--- .../backup/ob_multi_backup_dest_util.cpp | 14 ++++++++--- src/share/backup/ob_multi_backup_dest_util.h | 14 ++++++++--- src/sql/engine/expr/ob_expr_cot.cpp | 19 +++++++------- src/sql/engine/expr/ob_expr_cot.h | 19 +++++++------- src/sql/engine/expr/ob_expr_degrees.cpp | 15 ++++++++--- src/sql/engine/expr/ob_expr_degrees.h | 15 ++++++++--- src/sql/engine/expr/ob_expr_makedate.cpp | 14 ++++++++--- src/sql/engine/expr/ob_expr_makedate.h | 14 ++++++++--- src/sql/engine/expr/ob_expr_pi.cpp | 16 +++++++++--- src/sql/engine/expr/ob_expr_pi.h | 16 +++++++++--- src/sql/engine/expr/ob_expr_time_format.cpp | 14 ++++++++--- src/sql/engine/expr/ob_expr_time_format.h | 14 ++++++++--- src/sql/engine/expr/ob_expr_weight_string.cpp | 17 +++++++++---- src/sql/engine/expr/ob_expr_weight_string.h | 22 ++++++++-------- src/sql/ob_sql.cpp | 2 +- src/sql/session/ob_user_resource_mgr.cpp | 14 ++++++++--- src/sql/session/ob_user_resource_mgr.h | 15 ++++++++--- ...b_partition_base_data_backup_backupset.cpp | 16 ++++++++---- .../ob_partition_base_data_backup_backupset.h | 16 ++++++++---- src/storage/transaction/ob_mask_set.h | 24 ++++++++---------- unittest/clog/clog_mock_utils.h | 18 ++++++++----- unittest/clog/test_log_callback_engine.cpp | 20 +++++++++------ unittest/clog/test_log_reconfirm.cpp | 18 ++++++++----- .../test_ob_log_partition_meta_reader.cpp | 19 +++++++++----- unittest/clog/test_ob_log_writer.cpp | 17 +++++++++---- .../test_log_archive_backup_info_mgr.cpp | 15 ++++++++--- .../backup/test_multi_backup_dest_util.cpp | 15 ++++++++--- unittest/share/test_di_perf.cpp | 24 ++++++++---------- unittest/sql/plan_cache/test_sql.h | 24 ++++++++---------- 55 files changed, 595 insertions(+), 356 deletions(-) diff --git a/deps/oblib/src/lib/container/ob_mask_set2.h b/deps/oblib/src/lib/container/ob_mask_set2.h index 736e96e57..cd6afb1fe 100644 --- a/deps/oblib/src/lib/container/ob_mask_set2.h +++ b/deps/oblib/src/lib/container/ob_mask_set2.h @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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 OCEANBASE_COMMON_OB_MASK_SET2_ diff --git a/deps/oblib/src/lib/stat/ob_di_list.h b/deps/oblib/src/lib/stat/ob_di_list.h index 99df04adc..989eb59a2 100644 --- a/deps/oblib/src/lib/stat/ob_di_list.h +++ b/deps/oblib/src/lib/stat/ob_di_list.h @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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 OB_DI_LIST_H_ diff --git a/deps/oblib/src/lib/stat/ob_di_tls.h b/deps/oblib/src/lib/stat/ob_di_tls.h index d3c68375f..191865ca6 100644 --- a/deps/oblib/src/lib/stat/ob_di_tls.h +++ b/deps/oblib/src/lib/stat/ob_di_tls.h @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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 OB_DI_TLS_H_ diff --git a/deps/oblib/unittest/lib/restore/test_storage_oss.cpp b/deps/oblib/unittest/lib/restore/test_storage_oss.cpp index 2d5a1bc45..5cefbcb50 100644 --- a/deps/oblib/unittest/lib/restore/test_storage_oss.cpp +++ b/deps/oblib/unittest/lib/restore/test_storage_oss.cpp @@ -1,3 +1,15 @@ +/** + * 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 "lib/utility/ob_test_util.h" #include "lib/restore/ob_storage.h" diff --git a/deps/oblib/unittest/rpc/mem_frag.c b/deps/oblib/unittest/rpc/mem_frag.c index 04f9316d1..02ac99dae 100644 --- a/deps/oblib/unittest/rpc/mem_frag.c +++ b/deps/oblib/unittest/rpc/mem_frag.c @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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/src/observer/mysql/obmp_stmt_send_long_data.cpp b/src/observer/mysql/obmp_stmt_send_long_data.cpp index ed67769a7..2a431a082 100644 --- a/src/observer/mysql/obmp_stmt_send_long_data.cpp +++ b/src/observer/mysql/obmp_stmt_send_long_data.cpp @@ -1,18 +1,13 @@ -/* - * 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. - * - * Version: $Id: obmp_stmt_send_long_data.cpp 01/03/2021 13:22:22 PM - * - * Authors: - * hualong +/** + * 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 USING_LOG_PREFIX SERVER diff --git a/src/observer/mysql/obmp_stmt_send_long_data.h b/src/observer/mysql/obmp_stmt_send_long_data.h index eb76494c6..b9e8bd0e2 100644 --- a/src/observer/mysql/obmp_stmt_send_long_data.h +++ b/src/observer/mysql/obmp_stmt_send_long_data.h @@ -1,18 +1,13 @@ -/* - * 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. - * - * Version: $Id: obmp_stmt_send_long_data.h 19/08/2021 13:22:22 PM - * - * Authors: - * hualong +/** + * 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 OCEANBASE_OBSERVER_MYSQL_OBMP_STMT_SEND_LONG_DATA_H_ diff --git a/src/observer/virtual_table/ob_all_disk_stat.h b/src/observer/virtual_table/ob_all_disk_stat.h index 055c9d838..be425d195 100644 --- a/src/observer/virtual_table/ob_all_disk_stat.h +++ b/src/observer/virtual_table/ob_all_disk_stat.h @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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 OCEANBASE_OBSERVER_VIRTUAL_TABLE_OB_DISK_STAT_TABLE_ diff --git a/src/observer/virtual_table/ob_all_storage_stat.h b/src/observer/virtual_table/ob_all_storage_stat.h index bcaae05e6..6724d5caf 100644 --- a/src/observer/virtual_table/ob_all_storage_stat.h +++ b/src/observer/virtual_table/ob_all_storage_stat.h @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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 OCEANBASE_OBSERVER_VIRTUAL_TABLE_OB_STORAGE_STAT_TABLE_ diff --git a/src/observer/virtual_table/ob_all_virtual_backup_clean_info.cpp b/src/observer/virtual_table/ob_all_virtual_backup_clean_info.cpp index ce2734a70..198bfe7e0 100644 --- a/src/observer/virtual_table/ob_all_virtual_backup_clean_info.cpp +++ b/src/observer/virtual_table/ob_all_virtual_backup_clean_info.cpp @@ -1,7 +1,14 @@ -// Copyright 2010-2020 Oceanbase Inc. All Rights Reserved. -// Author: -// muwei.ym@antgroup.com -// +/** + * 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 "observer/virtual_table/ob_all_virtual_backup_clean_info.h" #include "observer/ob_server.h" diff --git a/src/observer/virtual_table/ob_all_virtual_backup_clean_info.h b/src/observer/virtual_table/ob_all_virtual_backup_clean_info.h index 923af3e24..3886e2ee9 100644 --- a/src/observer/virtual_table/ob_all_virtual_backup_clean_info.h +++ b/src/observer/virtual_table/ob_all_virtual_backup_clean_info.h @@ -1,7 +1,14 @@ -// Copyright 2010-2020 Oceanbase Inc. All Rights Reserved. -// Author: -// muwei.ym@antgroup.com -// +/** + * 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 SRC_OBSERVER_VIRTUAL_TABLE_OB_ALL_VIRTUAL_BACKUP_CLEAN_INFO_H_ #define SRC_OBSERVER_VIRTUAL_TABLE_OB_ALL_VIRTUAL_BACKUP_CLEAN_INFO_H_ diff --git a/src/observer/virtual_table/ob_information_kvcache_table.h b/src/observer/virtual_table/ob_information_kvcache_table.h index 3a585519b..87269a77d 100644 --- a/src/observer/virtual_table/ob_information_kvcache_table.h +++ b/src/observer/virtual_table/ob_information_kvcache_table.h @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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 OCEANBASE_OBSERVER_VIRTUAL_TABLE_OB_INFORMATION_KVCACHE_TABLE_ diff --git a/src/observer/virtual_table/ob_tenant_show_restore_preview.cpp b/src/observer/virtual_table/ob_tenant_show_restore_preview.cpp index c2f7f212f..14bff7b06 100644 --- a/src/observer/virtual_table/ob_tenant_show_restore_preview.cpp +++ b/src/observer/virtual_table/ob_tenant_show_restore_preview.cpp @@ -1,6 +1,14 @@ -// Copyright 2021 OceanBase Inc. All Rights Reserved -// Author: -// yanfeng +/** + * 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 "observer/virtual_table/ob_tenant_show_restore_preview.h" #include "share/backup/ob_multi_backup_dest_util.h" diff --git a/src/observer/virtual_table/ob_tenant_show_restore_preview.h b/src/observer/virtual_table/ob_tenant_show_restore_preview.h index 90755a0ea..244040856 100644 --- a/src/observer/virtual_table/ob_tenant_show_restore_preview.h +++ b/src/observer/virtual_table/ob_tenant_show_restore_preview.h @@ -1,6 +1,14 @@ -// Copyright 2021 OceanBase Inc. All Rights Reserved -// Author: -// yanfeng +/** + * 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 OCEANBASE_OBSERVER_VIRTUAL_TABLE_OB_TENANT_SHOW_RESTORE_PREVIEW_H_ #define OCEANBASE_OBSERVER_VIRTUAL_TABLE_OB_TENANT_SHOW_RESTORE_PREVIEW_H_ diff --git a/src/rootserver/backup/ob_backup_archive_log_scheduler.h b/src/rootserver/backup/ob_backup_archive_log_scheduler.h index 82ca43ad9..d58ebcc2a 100644 --- a/src/rootserver/backup/ob_backup_archive_log_scheduler.h +++ b/src/rootserver/backup/ob_backup_archive_log_scheduler.h @@ -1,8 +1,15 @@ -// Copyright 2020 Alibaba Inc. All Rights Reserved -// Author: -// yanfeng -// Normalizer: -// yanfeng +/** + * 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 OCEANBASE_ROOTSERVER_OB_BACKUP_ARCHIVE_LOG_SCHEDULER_H_ #define OCEANBASE_ROOTSERVER_OB_BACKUP_ARCHIVE_LOG_SCHEDULER_H_ #include "rootserver/ob_thread_idling.h" diff --git a/src/rootserver/backup/ob_backup_backupset_scheduler.cpp b/src/rootserver/backup/ob_backup_backupset_scheduler.cpp index 1ca914749..a7ed9c054 100644 --- a/src/rootserver/backup/ob_backup_backupset_scheduler.cpp +++ b/src/rootserver/backup/ob_backup_backupset_scheduler.cpp @@ -1,8 +1,14 @@ -// Copyright 2020 Alibaba Inc. All Rights Reserved -// Author: -// yanfeng -// Normalizer: -// yanfeng -// Normalizer: -// yanfeng +/** + * 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 USING_LOG_PREFIX RS diff --git a/src/rootserver/backup/ob_cancel_backup_backup_scheduler.h b/src/rootserver/backup/ob_cancel_backup_backup_scheduler.h index 3137ca4fe..1b609c78c 100644 --- a/src/rootserver/backup/ob_cancel_backup_backup_scheduler.h +++ b/src/rootserver/backup/ob_cancel_backup_backup_scheduler.h @@ -1,7 +1,14 @@ -// Copyright (c) 2021 OceanBase Inc. All Rights Reserved. -// -// Author: -// yangyi.yyy +/** + * 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 OCEANBASE_ROOTSERVER_BACKUP_OB_BACKUP_CANCEL_BACKUP_BACKUP_SCHEDULER_H_ #define OCEANBASE_ROOTSERVER_BACKUP_OB_BACKUP_CANCEL_BACKUP_BACKUP_SCHEDULER_H_ diff --git a/src/share/backup/ob_backup_archive_log_round_stat.cpp b/src/share/backup/ob_backup_archive_log_round_stat.cpp index adb771926..e83199525 100644 --- a/src/share/backup/ob_backup_archive_log_round_stat.cpp +++ b/src/share/backup/ob_backup_archive_log_round_stat.cpp @@ -1,6 +1,14 @@ -// Copyright 2020 Alibaba Inc. All Rights Reserved -// Author: -// yanfeng +/** + * 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 USING_LOG_PREFIX SHARE #include "share/backup/ob_backup_archive_log_round_stat.h" diff --git a/src/share/backup/ob_backup_archive_log_round_stat.h b/src/share/backup/ob_backup_archive_log_round_stat.h index 99e832e30..bc29f2b9c 100644 --- a/src/share/backup/ob_backup_archive_log_round_stat.h +++ b/src/share/backup/ob_backup_archive_log_round_stat.h @@ -1,6 +1,14 @@ -// Copyright 2020 Alibaba Inc. All Rights Reserved -// Author: -// yanfeng +/** + * 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 OCEANBASE_ROOTSERVER_OB_BACKUP_ARCHIVE_LOG_ROUND_STAT_H_ #define OCEANBASE_ROOTSERVER_OB_BACKUP_ARCHIVE_LOG_ROUND_STAT_H_ diff --git a/src/share/backup/ob_backup_backuppiece_operator.cpp b/src/share/backup/ob_backup_backuppiece_operator.cpp index fb685d44e..acd169c27 100644 --- a/src/share/backup/ob_backup_backuppiece_operator.cpp +++ b/src/share/backup/ob_backup_backuppiece_operator.cpp @@ -1,8 +1,14 @@ -// Copyright 2021 OceanBase Inc. All Rights Reserved -// Author: -// yanfeng -// Normalizer: -// yanfeng -// Normalizer: -// yanfeng +/** + * 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 OCEANBASE_SHARE_BACKUP_OB_BACKUP_BACKUPPIECE_OPERATOR_H_ #define OCEANBASE_SHARE_BACKUP_OB_BACKUP_BACKUPPIECE_OPERATOR_H_ diff --git a/src/share/backup/ob_backup_backupset_operator.cpp b/src/share/backup/ob_backup_backupset_operator.cpp index 8b4044ff3..93409c6d3 100644 --- a/src/share/backup/ob_backup_backupset_operator.cpp +++ b/src/share/backup/ob_backup_backupset_operator.cpp @@ -1,8 +1,14 @@ -// Copyright 2020 Alibaba Inc. All Rights Reserved -// Author: -// yanfeng -// Normalizer: -// yanfeng +/** + * 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 USING_LOG_PREFIX SHARE #include "share/backup/ob_backup_backupset_operator.h" diff --git a/src/share/backup/ob_backup_meta_store.cpp b/src/share/backup/ob_backup_meta_store.cpp index 95e0ca752..5e9921f35 100644 --- a/src/share/backup/ob_backup_meta_store.cpp +++ b/src/share/backup/ob_backup_meta_store.cpp @@ -1,6 +1,14 @@ -// Copyright 2020 OceanBase Inc. All Rights Reserved -// Author: -// yanfeng +/** + * 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 USING_LOG_PREFIX SHARE #include "share/backup/ob_backup_meta_store.h" diff --git a/src/share/backup/ob_backup_meta_store.h b/src/share/backup/ob_backup_meta_store.h index b0d7419f8..a3ae5610c 100644 --- a/src/share/backup/ob_backup_meta_store.h +++ b/src/share/backup/ob_backup_meta_store.h @@ -1,6 +1,14 @@ -// Copyright 2020 OceanBase Inc. All Rights Reserved -// Author: -// yanfeng +/** + * 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 OCEANBASE_SHARE_BACKUP_OB_BACKUP_META_STORE_H_ #define OCEANBASE_SHARE_BACKUP_OB_BACKUP_META_STORE_H_ diff --git a/src/share/backup/ob_multi_backup_dest_util.cpp b/src/share/backup/ob_multi_backup_dest_util.cpp index be6028e42..9cb37b9fa 100644 --- a/src/share/backup/ob_multi_backup_dest_util.cpp +++ b/src/share/backup/ob_multi_backup_dest_util.cpp @@ -1,6 +1,14 @@ -// Copyright 2021 OceanBase Inc. All Rights Reserved -// Author: -// yanfeng +/** + * 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 USING_LOG_PREFIX SHARE diff --git a/src/share/backup/ob_multi_backup_dest_util.h b/src/share/backup/ob_multi_backup_dest_util.h index 2fa45d02d..27dd4fde9 100644 --- a/src/share/backup/ob_multi_backup_dest_util.h +++ b/src/share/backup/ob_multi_backup_dest_util.h @@ -1,6 +1,14 @@ -// Copyright 2021 OceanBase Inc. All Rights Reserved -// Author: -// yanfeng +/** + * 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 OCEANBASE_SHARE_BACKUP_OB_MULTI_BACKUP_DEST_UTIL_H_ #define OCEANBASE_SHARE_BACKUP_OB_MULTI_BACKUP_DEST_UTIL_H_ diff --git a/src/sql/engine/expr/ob_expr_cot.cpp b/src/sql/engine/expr/ob_expr_cot.cpp index 83a963f9b..0f136ceb9 100644 --- a/src/sql/engine/expr/ob_expr_cot.cpp +++ b/src/sql/engine/expr/ob_expr_cot.cpp @@ -1,14 +1,15 @@ /** - * Copyright 2014-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. - * - * - * Authors: - * zimiao + * 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 USING_LOG_PREFIX SQL_ENG #include "sql/parser/ob_item_type.h" #include "lib/oblog/ob_log.h" diff --git a/src/sql/engine/expr/ob_expr_cot.h b/src/sql/engine/expr/ob_expr_cot.h index 6e241035b..89fa9480a 100644 --- a/src/sql/engine/expr/ob_expr_cot.h +++ b/src/sql/engine/expr/ob_expr_cot.h @@ -1,14 +1,15 @@ /** - * Copyright 2014-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. - * - * - * Authors: - * zimiao + * 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 OCEANBASE_SQL_ENGINE_EXPR_COT_ #define OCEANBASE_SQL_ENGINE_EXPR_COT_ #include "sql/engine/expr/ob_expr_operator.h" diff --git a/src/sql/engine/expr/ob_expr_degrees.cpp b/src/sql/engine/expr/ob_expr_degrees.cpp index 8e308845e..57d4c9348 100644 --- a/src/sql/engine/expr/ob_expr_degrees.cpp +++ b/src/sql/engine/expr/ob_expr_degrees.cpp @@ -1,6 +1,15 @@ -// Copyright (c) 2014-2021 Alibaba Inc. All Right Reserved. -// Author: -// liuqifan.lqf@antgroup.com +/** + * 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 USING_LOG_PREFIX SQL_ENG #include "sql/engine/expr/ob_expr_degrees.h" #include "lib/number/ob_number_v2.h" diff --git a/src/sql/engine/expr/ob_expr_degrees.h b/src/sql/engine/expr/ob_expr_degrees.h index 83cbd09cd..6c95d5271 100644 --- a/src/sql/engine/expr/ob_expr_degrees.h +++ b/src/sql/engine/expr/ob_expr_degrees.h @@ -1,7 +1,14 @@ -// -// Author: -// liuqifan.lqf@antgroup.com -// +/** + * 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 OCEANBASE_SQL_ENGINE_EXPR_DEGREES_ #define OCEANBASE_SQL_ENGINE_EXPR_DEGREES_ diff --git a/src/sql/engine/expr/ob_expr_makedate.cpp b/src/sql/engine/expr/ob_expr_makedate.cpp index e9d58f295..39e6ae5dc 100644 --- a/src/sql/engine/expr/ob_expr_makedate.cpp +++ b/src/sql/engine/expr/ob_expr_makedate.cpp @@ -1,6 +1,14 @@ -// Copyright 2021 Alibaba Inc. All Rights Reserved. -// Author: -// shanting +/** + * 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 USING_LOG_PREFIX SQL_ENG #include "lib/ob_name_def.h" diff --git a/src/sql/engine/expr/ob_expr_makedate.h b/src/sql/engine/expr/ob_expr_makedate.h index 3595f3990..b40ae03fe 100644 --- a/src/sql/engine/expr/ob_expr_makedate.h +++ b/src/sql/engine/expr/ob_expr_makedate.h @@ -1,6 +1,14 @@ -// Copyright 2021 Alibaba Inc. All Rights Reserved. -// Author: -// shanting +/** + * 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 OB_SQL_ENGINE_EXPR_MAKEDATE_ diff --git a/src/sql/engine/expr/ob_expr_pi.cpp b/src/sql/engine/expr/ob_expr_pi.cpp index 5c0727511..a6b9acbb4 100644 --- a/src/sql/engine/expr/ob_expr_pi.cpp +++ b/src/sql/engine/expr/ob_expr_pi.cpp @@ -1,7 +1,15 @@ -// Copyright 1999-2021 Alibaba Inc. All Rights Reserved. -// Author: -// xiaofeng.lby@alipay.com -// Normalizer: +/** + * 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. + */ + // // This file is for implementation of func pi diff --git a/src/sql/engine/expr/ob_expr_pi.h b/src/sql/engine/expr/ob_expr_pi.h index 641cc592f..0941d20d2 100644 --- a/src/sql/engine/expr/ob_expr_pi.h +++ b/src/sql/engine/expr/ob_expr_pi.h @@ -1,7 +1,15 @@ -// Copyright 1999-2021 Alibaba Inc. All Rights Reserved. -// Author: -// xiaofeng.lby@alipay.com -// +/** + * 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. + */ + // This file is for implementation of func pi #ifndef OCEANBASE_SQL_ENGINE_EXPR_OB_EXPR_PI_ diff --git a/src/sql/engine/expr/ob_expr_time_format.cpp b/src/sql/engine/expr/ob_expr_time_format.cpp index ae3a56409..2fc783e8b 100644 --- a/src/sql/engine/expr/ob_expr_time_format.cpp +++ b/src/sql/engine/expr/ob_expr_time_format.cpp @@ -1,6 +1,14 @@ -// Copyright 2021 Alibaba Inc. All Rights Reserved. -// Author: -// shanting +/** + * 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 USING_LOG_PREFIX SQL_ENG #include "lib/ob_name_def.h" diff --git a/src/sql/engine/expr/ob_expr_time_format.h b/src/sql/engine/expr/ob_expr_time_format.h index b6ab8d961..42ddaa140 100644 --- a/src/sql/engine/expr/ob_expr_time_format.h +++ b/src/sql/engine/expr/ob_expr_time_format.h @@ -1,6 +1,14 @@ -// Copyright 2021 Alibaba Inc. All Rights Reserved. -// Author: -// shanting +/** + * 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 OCEANBASE_SQL_OB_EXPR_TIME_FORMAT_H_ diff --git a/src/sql/engine/expr/ob_expr_weight_string.cpp b/src/sql/engine/expr/ob_expr_weight_string.cpp index ae2ab91de..e0155ab62 100644 --- a/src/sql/engine/expr/ob_expr_weight_string.cpp +++ b/src/sql/engine/expr/ob_expr_weight_string.cpp @@ -1,8 +1,15 @@ -// Copyright (c) 2015-2016 Alibaba Inc. All Rights Reserved. -// Author: -// jiajingzhe.jjz@alibaba-inc.com -// Normalizer: -// +/** + * 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 USING_LOG_PREFIX SQL_ENG #define OB_MAX_WEIGHT OB_MAX_VARCHAR_LENGTH diff --git a/src/sql/engine/expr/ob_expr_weight_string.h b/src/sql/engine/expr/ob_expr_weight_string.h index 20b693bb5..8a8d453ac 100644 --- a/src/sql/engine/expr/ob_expr_weight_string.h +++ b/src/sql/engine/expr/ob_expr_weight_string.h @@ -1,14 +1,14 @@ -/* -* Copyright (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) 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 OCEANBASE_SQL_ENGINE_EXPR_OB_EXPR_WEGHT_STRING_H_ #define OCEANBASE_SQL_ENGINE_EXPR_OB_EXPR_WEGHT_STRING_H_ diff --git a/src/sql/ob_sql.cpp b/src/sql/ob_sql.cpp index 1a30a4129..853f4a0da 100644 --- a/src/sql/ob_sql.cpp +++ b/src/sql/ob_sql.cpp @@ -1,4 +1,4 @@ - /** +/** * 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. diff --git a/src/sql/session/ob_user_resource_mgr.cpp b/src/sql/session/ob_user_resource_mgr.cpp index d73ea7d24..f0cac5e36 100644 --- a/src/sql/session/ob_user_resource_mgr.cpp +++ b/src/sql/session/ob_user_resource_mgr.cpp @@ -1,6 +1,14 @@ -// Copyright 2021 Alibaba Inc. All Rights Reserved. -// Author: -// shanting +/** + * 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 USING_LOG_PREFIX SQL_SESSION diff --git a/src/sql/session/ob_user_resource_mgr.h b/src/sql/session/ob_user_resource_mgr.h index 9cb9607dc..98e098679 100644 --- a/src/sql/session/ob_user_resource_mgr.h +++ b/src/sql/session/ob_user_resource_mgr.h @@ -1,6 +1,15 @@ -// Copyright 2021 Alibaba Inc. All Rights Reserved. -// Author: -// shanting +/** + * 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 OCEANBASE_SQL_USER_RESOURCE_MGR_H_ #define OCEANBASE_SQL_USER_RESOURCE_MGR_H_ diff --git a/src/storage/ob_partition_base_data_backup_backupset.cpp b/src/storage/ob_partition_base_data_backup_backupset.cpp index 04b7c03a8..8b34d3492 100644 --- a/src/storage/ob_partition_base_data_backup_backupset.cpp +++ b/src/storage/ob_partition_base_data_backup_backupset.cpp @@ -1,8 +1,14 @@ -// Copyright 2020 Alibaba Inc. All Rights Reserved -// Author: -// yanfeng -// Normalizer: -// yanfeng +/** + * 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 USING_LOG_PREFIX STORAGE #include "storage/ob_partition_base_data_backup_backupset.h" diff --git a/src/storage/ob_partition_base_data_backup_backupset.h b/src/storage/ob_partition_base_data_backup_backupset.h index 0be3d2814..daadddc51 100644 --- a/src/storage/ob_partition_base_data_backup_backupset.h +++ b/src/storage/ob_partition_base_data_backup_backupset.h @@ -1,8 +1,14 @@ -// Copyright 2020 Alibaba Inc. All Rights Reserved -// Author: -// yanfeng -// Normalizer: -// yanfeng +/** + * 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 OCEANBASE_STORAGE_OB_PARTITION_BASE_DATA_BACKUP_BACKUPSET_H_ #define OCEANBASE_STORAGE_OB_PARTITION_BASE_DATA_BACKUP_BACKUPSET_H_ diff --git a/src/storage/transaction/ob_mask_set.h b/src/storage/transaction/ob_mask_set.h index 1c427e676..12107b23f 100644 --- a/src/storage/transaction/ob_mask_set.h +++ b/src/storage/transaction/ob_mask_set.h @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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 OCEANBASE_COMMON_OB_MASK_SET_ diff --git a/unittest/clog/clog_mock_utils.h b/unittest/clog/clog_mock_utils.h index 04676ad8a..663050503 100644 --- a/unittest/clog/clog_mock_utils.h +++ b/unittest/clog/clog_mock_utils.h @@ -1,9 +1,15 @@ -// Copyright 2014 Alibaba Inc. All Rights Reserved. -// Author: -// zhangshuai.zs@alibaba-inc.com -// -// This file is for... -// +/** + * 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 OCEANBASE_UNITTEST_MOCK_LOG_UTILS_H_ #define OCEANBASE_UNITTEST_MOCK_LOG_UTILS_H_ diff --git a/unittest/clog/test_log_callback_engine.cpp b/unittest/clog/test_log_callback_engine.cpp index 88c41a982..35839e3ad 100644 --- a/unittest/clog/test_log_callback_engine.cpp +++ b/unittest/clog/test_log_callback_engine.cpp @@ -1,10 +1,16 @@ -// Copyright 2014 Alibaba Inc. All Rights Reserved. -// Author: -// zhenzhong.jzz@alibaba-inc.com -// Owner: -// zhenzhong.jzz@alibaba-inc.com -// -//This file is for the unit test of log_callback_engine and the related +/** + * 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. + */ + +//This file is for the unit test of log_callback_engine and the related //threadpool and handler. #include diff --git a/unittest/clog/test_log_reconfirm.cpp b/unittest/clog/test_log_reconfirm.cpp index 8af5110e8..3cb3294a1 100644 --- a/unittest/clog/test_log_reconfirm.cpp +++ b/unittest/clog/test_log_reconfirm.cpp @@ -1,9 +1,15 @@ -// Copyright 2014 Alibaba Inc. All Rights Reserved. -// Author: -// zhenzhong.jzz@alibaba-inc.com -// Owner: -// zhenzhong.jzz@alibaba-inc.com -// +/** + * 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. + */ + // This file is for unit test of ObLogReconfirm #include "clog/ob_log_reconfirm.h" diff --git a/unittest/clog/test_ob_log_partition_meta_reader.cpp b/unittest/clog/test_ob_log_partition_meta_reader.cpp index 8c33626f5..ae8f31217 100644 --- a/unittest/clog/test_ob_log_partition_meta_reader.cpp +++ b/unittest/clog/test_ob_log_partition_meta_reader.cpp @@ -1,15 +1,22 @@ -// Copyright 2014 Alibaba Inc. All Rights Reserved. -// Author: -// qiaoli.xql@alibaba-inc.com -// Owner: -// lujun.wlj@alibaba-inc.com +/** + * 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. + */ + // // This file tests ObLogPartitionMetaReader. // //l1: Write the correct trailer information and read the correct PartitionMeta information //l2: Write the correct trailer information and read the incorrect PartitionMeta information //l3: Write the correct trailer information and can not read PartitionMeta information -//14: not write trailer +//14: not write trailer // #include "clog/ob_log_partition_meta_reader.h" diff --git a/unittest/clog/test_ob_log_writer.cpp b/unittest/clog/test_ob_log_writer.cpp index f8953e9b6..a67beae48 100644 --- a/unittest/clog/test_ob_log_writer.cpp +++ b/unittest/clog/test_ob_log_writer.cpp @@ -1,8 +1,15 @@ -// Copyright 2014 Alibaba Inc. All Rights Reserved. -// Author: -// qiaoli.xql@alibaba-inc.com -// Owner: -// lujun.wlj@alibaba-inc.com +/** + * 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. + */ + // // This file tests ObLogWriter. // diff --git a/unittest/share/backup/test_log_archive_backup_info_mgr.cpp b/unittest/share/backup/test_log_archive_backup_info_mgr.cpp index e10c1bc04..76df6a9e5 100644 --- a/unittest/share/backup/test_log_archive_backup_info_mgr.cpp +++ b/unittest/share/backup/test_log_archive_backup_info_mgr.cpp @@ -1,7 +1,14 @@ -// Copyright 2010-2021 OceanBase Inc. All Rights Reserved. -// Author: -// yongle.xh@antfin.com -// +/** + * 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 USING_LOG_PREFIX SHARE diff --git a/unittest/share/backup/test_multi_backup_dest_util.cpp b/unittest/share/backup/test_multi_backup_dest_util.cpp index 9a98b1f9b..f933df42e 100644 --- a/unittest/share/backup/test_multi_backup_dest_util.cpp +++ b/unittest/share/backup/test_multi_backup_dest_util.cpp @@ -1,7 +1,14 @@ -// Copyright 2010-2021 OceanBase Inc. All Rights Reserved. -// Author: -// yangyi.yyy@antfin.com -// +/** + * 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 USING_LOG_PREFIX SHARE diff --git a/unittest/share/test_di_perf.cpp b/unittest/share/test_di_perf.cpp index e5b69a10c..85ad58e65 100644 --- a/unittest/share/test_di_perf.cpp +++ b/unittest/share/test_di_perf.cpp @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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/unittest/sql/plan_cache/test_sql.h b/unittest/sql/plan_cache/test_sql.h index 3449be173..80bb6f7e5 100644 --- a/unittest/sql/plan_cache/test_sql.h +++ b/unittest/sql/plan_cache/test_sql.h @@ -1,17 +1,13 @@ -/** - * 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. +/** + * 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 OCEANBASE_TEST_SQL_H_