fix reseed checking at startup, broken in previous checkin

This commit is contained in:
zzz
2015-01-07 23:15:10 +00:00
parent 0a938d9048
commit 285c13d900

View File

@ -364,11 +364,12 @@ class PersistentDataStore extends TransientDataStore {
}
if (shouldScan) {
_log.info("Rereading new files");
_lastModified = now;
// synch with the writer job
synchronized (_dbDir) {
// _lastModified must be 0 for the first run
readFiles();
}
_lastModified = now;
}
requeue(READ_DELAY);
}