Skip to content

Commit

Permalink
[update][lib][rdbms] It should split the table even when the is set t…
Browse files Browse the repository at this point in the history
…o 1.
  • Loading branch information
wgzhao committed Sep 25, 2024
1 parent e7a0774 commit 291fd69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static List<Configuration> doSplit(Configuration originalSliceConfig, int

String splitPk = originalSliceConfig.getString(Key.SPLIT_PK, null);
//最终切分份数不一定等于 eachTableShouldSplitNumber
boolean needSplitTable = tableSplitNumber > 1 && StringUtils.isNotBlank(splitPk);
boolean needSplitTable = tableSplitNumber > 0 && StringUtils.isNotBlank(splitPk);
if (needSplitTable) {
if (tables.size() == 1 && !isUserSpecifyEachTableSplitSize) {
//原来:如果是单表的,主键切分num=num*2+1
Expand Down

0 comments on commit 291fd69

Please sign in to comment.