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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user