Skip to content
Snippets Groups Projects
Commit 300bb2bd authored by gakin's avatar gakin
Browse files

SSDM-4761 OpenbisSync full-sync feature. fix for case when the timestamp file does not exist

SVN: 38075
parent aacd13bc
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,7 @@ public class HarvesterMaintenanceTask<T extends DataSetInformation> implements I ...@@ -155,7 +155,7 @@ public class HarvesterMaintenanceTask<T extends DataSetInformation> implements I
loadCutOffTimeStamps(lastSyncTimestampFile); loadCutOffTimeStamps(lastSyncTimestampFile);
Date cutOffTimestamp = lastIncSyncTimestamp; Date cutOffTimestamp = lastIncSyncTimestamp;
boolean isFullSync = isTimeForFullSync(config); boolean isFullSync = lastSyncTimestampFile.exists() == false || isTimeForFullSync(config);
if (isFullSync == true) if (isFullSync == true)
{ {
cutOffTimestamp = new Date(0L); cutOffTimestamp = new Date(0L);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment