Skip to content

Commit 0d4fbab

Browse files
obdevPoseidon-fan
authored andcommitted
Fix deadlock when obtaining snapshot during database fork
Co-authored-by: Poseidon-fan <18646154381@163.com>
1 parent aac0eb2 commit 0d4fbab

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

deps/init/oceanbase.al8.aarch64.deps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[target-default]
22
os=8
33
arch=aarch64
4-
repo=https://ob-yum.oceanbase-dev.com/8/aarch64/test
4+
repo=http://mirrors.oceanbase.com/oceanbase/community/stable
55

66
[target-community]
77
os=8

deps/init/oceanbase.al8.x86_64.deps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[target-default]
22
os=8
33
arch=x86_64
4-
repo=https://ob-yum.oceanbase-dev.com/8/x86_64/test
4+
repo=http://mirrors.oceanbase.com/oceanbase/community/stable
55

66
[target-community]
77
os=8

src/rootserver/fork_table/ob_fork_database_service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ int ObDDLService::fork_database(
323323
} else if (has_async_vec_index) {
324324
if (OB_FAIL(transaction::tablelock::ObInnerConnectionLockUtil::lock_table(
325325
tenant_id, table_schema->get_table_id(),
326-
transaction::tablelock::EXCLUSIVE, lock_timeout_us, iconn))) {
326+
transaction::tablelock::SHARE, lock_timeout_us, iconn))) {
327327
LOG_WARN("fail to lock source table for async index sync", KR(ret),
328328
K(tenant_id), "table_id", table_schema->get_table_id());
329329
} else {

0 commit comments

Comments
 (0)