Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon McDuff2008-11-03 14:30:19 -0500
committerSimon McDuff2008-11-03 14:30:19 -0500
commit163840e930d67246bf4a178bdb524d80ce8e2fa8 (patch)
tree8bdab9dc55f231c912746a84676368ea0bceda81
parent4c1355f45efd7874d27e66f97cab8164cc578bf6 (diff)
downloadcdo-163840e930d67246bf4a178bdb524d80ce8e2fa8.tar.gz
cdo-163840e930d67246bf4a178bdb524d80ce8e2fa8.tar.xz
cdo-163840e930d67246bf4a178bdb524d80ce8e2fa8.zip
[253077] Store implementor that do not support Audit having problems
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253077
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/cache/lru/LRURevisionCache.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/cache/lru/LRURevisionCache.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/cache/lru/LRURevisionCache.java
index 299278cc44..c6ff70ce46 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/cache/lru/LRURevisionCache.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/cache/lru/LRURevisionCache.java
@@ -7,8 +7,7 @@
*
* Contributors:
* Eike Stepper - initial API and implementation
- * Simon McDuff - http://bugs.eclipse.org/201266
- * Simon McDuff - http://bugs.eclipse.org/230832
+ * Simon McDuff - maintenance
**************************************************************************/
package org.eclipse.emf.cdo.internal.common.revision.cache.lru;
@@ -383,7 +382,10 @@ public class LRURevisionCache extends Lifecycle implements CDORevisionCache
revisedLRU.add((DLRevisionHolder)nextHolder);
InternalCDORevision oldRevision = nextHolder.getRevision();
- if (oldRevision != null && oldRevision.getRevised() == 0 && oldRevision.getVersion() == holder.getVersion() - 1)
+
+ // TODO Should we even keeps revised revision with good version && not good revised ?
+ if (oldRevision != null && oldRevision.getRevised() == 0 && holder.getCreated() > 0
+ && oldRevision.getVersion() == holder.getVersion() - 1)
{
oldRevision.setRevised(holder.getCreated() - 1);
}

Back to the top