Skip to content

Commit

Permalink
Merge 9691db7 into 33444b6
Browse files Browse the repository at this point in the history
  • Loading branch information
betterjava committed Dec 9, 2019
2 parents 33444b6 + 9691db7 commit 5dbdb5a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -90,7 +90,7 @@ public final synchronized void pushRecord(final Record record) throws Interrupte
}
// hash by table name
DataRecord dataRecord = (DataRecord) record;
String index = Integer.toString(dataRecord.getTableName().hashCode() % channelNumber);
String index = Integer.toString(Math.abs(dataRecord.getTableName().hashCode()) % channelNumber);
channels.get(index).pushRecord(dataRecord);
} else if (PlaceholderRecord.class.equals(record.getClass())) {
if (0 < ackCallbacks.size()) {
Expand Down

0 comments on commit 5dbdb5a

Please sign in to comment.