From 0444af17925d3f10849df25d2b9c703f6c35d793 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Fri, 27 Jul 2007 21:15:27 +0000 Subject: [PATCH] Forgot to turn this check on properly. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@391 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../threerings/stats/server/persist/StatRepository.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/stats/server/persist/StatRepository.java b/src/java/com/threerings/stats/server/persist/StatRepository.java index 82296770..cfe36568 100644 --- a/src/java/com/threerings/stats/server/persist/StatRepository.java +++ b/src/java/com/threerings/stats/server/persist/StatRepository.java @@ -16,6 +16,7 @@ import com.samskivert.io.ByteArrayOutInputStream; import com.samskivert.io.PersistenceException; import com.samskivert.util.HashIntMap; +import com.samskivert.jdbc.DuplicateKeyException; import com.samskivert.jdbc.depot.CacheInvalidator; import com.samskivert.jdbc.depot.DepotRepository; import com.samskivert.jdbc.depot.PersistenceContext.CacheEvictionFilter; @@ -246,9 +247,9 @@ public class StatRepository extends DepotRepository // if this is not a duplicate row exception, something is booched and we // just fail -// if (!liaison.isDuplicateRowException(sqe)) { -// throw sqe; -// } + if (!(pe instanceof DuplicateKeyException)) { + throw pe; + } // if it is a duplicate row exception, possibly someone inserted our value // before we could, in which case we can just look up the new mapping