Skip to content

Commit 29ed522

Browse files
authored
[Cassandra] DefunctSiloCleanup - Specify datetime kind (#9382)
Specify datetime kind
1 parent 25a2da7 commit 29ed522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cassandra/Orleans.Clustering.Cassandra/CassandraClusteringTable.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ public async Task CleanupDefunctSiloEntries(DateTimeOffset beforeDate)
204204

205205
foreach (var e in allEntries)
206206
{
207-
if (e is not { Status: SiloStatus.Active } && new DateTime(Math.Max(e.IAmAliveTime.Ticks, e.StartTime.Ticks)) < beforeDate)
207+
if (e is not { Status: SiloStatus.Active } && new DateTime(Math.Max(e.IAmAliveTime.Ticks, e.StartTime.Ticks), DateTimeKind.Utc) < beforeDate)
208208
{
209209
await Session.ExecuteAsync(await Queries.DeleteMembershipEntry(_identifier, e));
210210
}
211211
}
212212
}
213-
}
213+
}

0 commit comments

Comments
 (0)