We're getting lots of collisions storing MINUTES_ACTIVE stats. Be more verbose when this happens.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@736 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Tom Conkling
2008-08-25 23:51:14 +00:00
parent f862f5363f
commit 8868835220
2 changed files with 7 additions and 0 deletions
@@ -109,6 +109,12 @@ public class StatRecord extends PersistentRecord
this.modCount = modCount;
}
@Override
public String toString ()
{
return "playerId=" + playerId + " statCode=" + statCode + " modCount=" + modCount;
}
// AUTO-GENERATED: METHODS START
/**
* Create and return a primary {@link Key} to identify a {@link #StatRecord}
@@ -292,6 +292,7 @@ public class StatRepository extends DepotRepository
if (numRows == 0 && forceWrite) {
log.warning("Possible collision while storing StatRecord",
"playerId", playerId, "stat", stat.getType().name(),
"modCount", nextModCount,
"overwriting", load(StatRecord.class, key));
store(new StatRecord(playerId, stat.getCode(), data, nextModCount));
numRows = 1;