mirror of
https://gitee.com/wangkang/udf.git
synced 2026-11-27 11:13:44 +00:00
添加snowflake的datacenterId和workerId的ID分配策略,利用redis的原子锁特性
This commit is contained in:
@@ -178,9 +178,6 @@ public class IdWorkerInit {
|
||||
});
|
||||
//日志输出
|
||||
log.info("refresh IdWorker success = {} , {} , {}", result, this.datacenterId, this.workerId);
|
||||
} else {
|
||||
//重新初始化
|
||||
this.init();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user