Skip to content

Commit

Permalink
[BugFix] Reset replication number for partition info to let the resto…
Browse files Browse the repository at this point in the history
…red partitions use the given value (#52263)

Signed-off-by: xiangguangyxg <xiangguangyxg@gmail.com>
  • Loading branch information
xiangguangyxg authored Oct 24, 2024
1 parent f91c1e5 commit 3cdcfe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fe/fe-core/src/main/java/com/starrocks/catalog/OlapTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,8 @@ public Status resetIdsForRestore(GlobalStateMgr globalStateMgr, Database db, int
Map<Long, Long> partitionOldIdToNewId = Maps.newHashMap();
for (Long id : idToPartition.keySet()) {
partitionOldIdToNewId.put(id, globalStateMgr.getNextId());
// reset replication number for partition info
partitionInfo.setReplicationNum(id, (short) restoreReplicationNum);
}

// reset partiton info
Expand Down

0 comments on commit 3cdcfe8

Please sign in to comment.