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 partition use the given value

Signed-off-by: xiangguangyxg <xiangguangyxg@gmail.com>
  • Loading branch information
xiangguangyxg committed Oct 24, 2024
1 parent f15a530 commit 7db18ee
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 7db18ee

Please sign in to comment.