Skip to content

Commit 94228ef

Browse files
obdevfkuner
authored andcommitted
fix: the life cycle of autoinc_seq is unreasonable
Co-authored-by: fkuner <784819644@qq.com>
1 parent a0511d9 commit 94228ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rootserver/fork_table/ob_fork_table_helper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ int ObForkTableHelper::copy_tablet_autoinc_seq_info_()
137137
LOG_WARN("fork table helper not init", KR(ret));
138138
} else {
139139
ObArenaAllocator allocator("ForkAutoinc");
140-
ObTabletAutoincSeq autoinc_seq;
141140
obrpc::ObBatchSetTabletAutoincSeqArg arg;
142141
arg.tenant_id_ = tenant_id_;
143142
arg.ls_id_ = SYS_LS;
@@ -148,6 +147,7 @@ int ObForkTableHelper::copy_tablet_autoinc_seq_info_()
148147
const ObTabletID &src_tablet_id = src_tablet_ids_.at(i);
149148
const ObTabletID &dst_tablet_id = dst_tablet_ids_.at(i);
150149
ObTabletHandle tablet_handle;
150+
ObTabletAutoincSeq autoinc_seq;
151151
share::ObMigrateTabletAutoincSeqParam param;
152152
param.src_tablet_id_ = src_tablet_id;
153153
param.dest_tablet_id_ = dst_tablet_id;

0 commit comments

Comments
 (0)