Skip to content

Commit

Permalink
#Updates#redis写入插件升级,先删除老key数据,再写入数据
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip2019 committed Aug 18, 2024
1 parent 92bcb11 commit df5e369
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void deleteOldData() {
*/
public void syncData() {
// 若数据大于0,开始写入同步数据
if (records > batchSize) {
if (records >= batchSize) {
RedisWriterHelper.syncData(pipelined);
records = 0;
}
Expand Down

0 comments on commit df5e369

Please sign in to comment.