Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-04-15 18:36:06 +0000
committerEike Stepper2010-04-15 18:36:06 +0000
commit06045ed5f1aecf852f8be7e27a4cdce82dc7c1ac (patch)
treecc51cb55cfbe979938f0f300e082e29028c8ac35 /plugins
parentce7f133aa37a0bf458de077bfb0e3763cb40bff2 (diff)
downloadcdo-06045ed5f1aecf852f8be7e27a4cdce82dc7c1ac.tar.gz
cdo-06045ed5f1aecf852f8be7e27a4cdce82dc7c1ac.tar.xz
cdo-06045ed5f1aecf852f8be7e27a4cdce82dc7c1ac.zip
[256936] Support for Offline Mode
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256936
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/syncing/SynchronizableRepository.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/syncing/SynchronizableRepository.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/syncing/SynchronizableRepository.java
index d17b3c1387..4a40b4966f 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/syncing/SynchronizableRepository.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/syncing/SynchronizableRepository.java
@@ -412,7 +412,7 @@ public abstract class SynchronizableRepository extends Repository.Default implem
CDOCommitData commitData = new CommitContextData(this);
// Delegate commit to the master
- CDOSessionProtocol sessionProtocol = (synchronizer.getRemoteSession()).getSessionProtocol();
+ CDOSessionProtocol sessionProtocol = synchronizer.getRemoteSession().getSessionProtocol();
CommitTransactionResult result = sessionProtocol.commitDelegation(branch, userID, comment, commitData, monitor);
// Stop if commit to master failed
@@ -423,7 +423,8 @@ public abstract class SynchronizableRepository extends Repository.Default implem
}
// Prepare data needed for commit result and commit notifications
- setTimeStamp(result.getTimeStamp());
+ long timeStamp = result.getTimeStamp();
+ setTimeStamp(timeStamp);
addMetaIDRanges(commitData.getNewPackageUnits());
addIDMappings(result.getIDMappings());
applyIDMappings(new Monitor());
@@ -434,7 +435,8 @@ public abstract class SynchronizableRepository extends Repository.Default implem
super.commit(new Monitor());
// Remember commit time in the local repository
- setLastCommitTimeStamp(result.getTimeStamp());
+ setLastCommitTimeStamp(timeStamp);
+ lastReplicatedCommitTime = timeStamp;
}
@Override

Back to the top