diff --git a/orm/src/main/java/com/zfoo/orm/model/cache/EntityCaches.java b/orm/src/main/java/com/zfoo/orm/model/cache/EntityCaches.java index 1a43d3e0..37c23354 100644 --- a/orm/src/main/java/com/zfoo/orm/model/cache/EntityCaches.java +++ b/orm/src/main/java/com/zfoo/orm/model/cache/EntityCaches.java @@ -144,8 +144,8 @@ public class EntityCaches, E extends IEntity> impl } if (currentPnode.getThreadId() != Thread.currentThread().getId()) { - logger.error("[{}]被多线程访问了,先后2次访问线程分别是[{}] [{}]", entity.getClass().getSimpleName(), - currentPnode.getThreadName(), Thread.currentThread().getName()); + logger.error("[{}]被多线程访问了,先后2次访问线程ID分别是[{}] [{}]", entity.getClass().getSimpleName(), + currentPnode.getThreadId(), Thread.currentThread().getId()); } // 加100以防止,立刻加载并且立刻修改数据的情况发生时,服务器取到的时间戳相同 diff --git a/orm/src/main/java/com/zfoo/orm/model/persister/PNode.java b/orm/src/main/java/com/zfoo/orm/model/persister/PNode.java index 243997ff..412b35dc 100644 --- a/orm/src/main/java/com/zfoo/orm/model/persister/PNode.java +++ b/orm/src/main/java/com/zfoo/orm/model/persister/PNode.java @@ -35,7 +35,6 @@ public class PNode> { // 记录最初访问时的线程信息 private long threadId; - private String threadName; public PNode(E entity) { this.entity = entity; @@ -45,7 +44,6 @@ public class PNode> { this.modifiedTime = currentTime; this.threadId = Thread.currentThread().getId(); - this.threadName = Thread.currentThread().getName(); } public E getEntity() { @@ -80,11 +78,4 @@ public class PNode> { this.threadId = threadId; } - public String getThreadName() { - return threadName; - } - - public void setThreadName(String threadName) { - this.threadName = threadName; - } }