Skip to content

Commit

Permalink
0005867: Prevented file sync from syncing all files when first scanni…
Browse files Browse the repository at this point in the history
…ng a directory with initial load enabled
  • Loading branch information
evan-miller-jumpmind committed Jun 2, 2023
1 parent 3701344 commit cd240d9
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,7 @@ protected void checkSourceDir(FileTriggerRouter fileTriggerRouter) {
}

protected boolean shouldIgnoreInitialFiles(FileTriggerRouter router, FileTrigger trigger, Date contextDate) {
if (!router.isInitialLoadEnabled()) {
if (contextDate == null || router.getLastUpdateTime().after(contextDate) || trigger.getLastUpdateTime().after(contextDate)) {
return true;
}
}
return false;
return contextDate == null || router.getLastUpdateTime().after(contextDate) || trigger.getLastUpdateTime().after(contextDate);
}

protected long saveDirectorySnapshot(FileTriggerRouter fileTriggerRouter, DirectorySnapshot dirSnapshot, boolean shouldIgnore) {
Expand Down

0 comments on commit cd240d9

Please sign in to comment.