summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2009-12-28 05:17:13 (EST)
committerCaspar De Groot2009-12-28 05:17:13 (EST)
commit3bce1f0c6a2e8b672eb5875bbf2bdbac4d1eba0f (patch)
tree0f8b40bab3dc71b12ba98c9295aea17b8de0c340
parent63d6146481b699dc0eba37a08bc8a8934d4b0993 (diff)
downloadcdo-3bce1f0c6a2e8b672eb5875bbf2bdbac4d1eba0f.zip
cdo-3bce1f0c6a2e8b672eb5875bbf2bdbac4d1eba0f.tar.gz
cdo-3bce1f0c6a2e8b672eb5875bbf2bdbac4d1eba0f.tar.bz2
[295198] CDOSession.refresh uses inconsistent methods to obtain revisions
https://bugs.eclipse.org/bugs/show_bug.cgi?id=295198
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionResolverImpl.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionResolverImpl.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionResolverImpl.java
index 0f1296d..a7c7522 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionResolverImpl.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionResolverImpl.java
@@ -90,14 +90,7 @@ public abstract class CDORevisionResolverImpl extends Lifecycle implements CDORe
InternalCDORevision revision = cache.getRevision(id);
if (revision != null)
{
- if (timeStamp == CDORevision.UNSPECIFIED_DATE)
- {
- removeCachedRevision(revision.getID(), revision.getVersion());
- }
- else
- {
- revision.setRevised(timeStamp - 1);
- }
+ cache.removeRevision(revision.getID(), revision.getVersion());
}
}
finally
@@ -117,7 +110,7 @@ public abstract class CDORevisionResolverImpl extends Lifecycle implements CDORe
{
if (timeStamp == CDORevision.UNSPECIFIED_DATE)
{
- removeCachedRevision(revision.getID(), revision.getVersion());
+ cache.removeRevision(revision.getID(), revision.getVersion());
}
else
{