Skip to content

Commit

Permalink
Merge branch 'hotfix-4.0.8' into support-4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons committed Oct 2, 2014
2 parents 28c580d + 4f651d1 commit cda7236
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ private static IRavenQueryable<TimeoutData> GetChunkQuery(IDocumentSession sessi
.OrderBy(t => t.Time)
.Where(
t =>
t.OwningTimeoutManager == null ||
t.OwningTimeoutManager == String.Empty ||
t.OwningTimeoutManager == Configure.EndpointName);
}
Expand Down Expand Up @@ -68,7 +69,7 @@ public List<Tuple<string, DateTime>> GetNextChunk(DateTime startSlice, out DateT
// Allow for occasionally cleaning up old timeouts for edge cases where timeouts have been
// added after startSlice have been set to a later timout and we might have missed them
// because of stale indexes.
if (lastCleanupTime.Add(TriggerCleanupEvery) > now || lastCleanupTime == DateTime.MinValue)
if (lastCleanupTime.Add(TriggerCleanupEvery) < now || lastCleanupTime == DateTime.MinValue)
{
results.AddRange(GetCleanupChunk(startSlice));
}
Expand Down

0 comments on commit cda7236

Please sign in to comment.