Skip to content

Commit

Permalink
Add missing query CleanupDefunctSiloEntriesKey to MySQL-Clustering.sql
Browse files Browse the repository at this point in the history
This is the same issue described in dotnet#8676 but for MySQL.

This PR will update it in a similar way as dotnet#8811
  • Loading branch information
juan-arias authored Feb 1, 2024
1 parent 4166e78 commit 43ac389
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/AdoNet/Orleans.Clustering.AdoNet/MySQL-Clustering.sql
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,14 @@ VALUES
DELETE FROM OrleansMembershipVersionTable
WHERE DeploymentId = @DeploymentId AND @DeploymentId IS NOT NULL;
');

INSERT INTO OrleansQuery(QueryKey, QueryText)
VALUES
(
'CleanupDefunctSiloEntriesKey','
DELETE FROM OrleansMembershipTable
WHERE DeploymentId = @DeploymentId
AND @DeploymentId IS NOT NULL
AND IAmAliveTime < @IAmAliveTime
AND Status !=3;
');

0 comments on commit 43ac389

Please sign in to comment.