mirror of https://github.com/citusdata/citus.git
Add version check to the maintenance daemon
We should prevent running the deadlock detection if there is a major version change. Otherwise, the daemon may access to obsolete metadata catalog tables.pull/1559/head
parent
0d71fcd8af
commit
205501532a
|
@ -266,7 +266,16 @@ CitusMaintenanceDaemonMain(Datum main_arg)
|
||||||
if (DistributedDeadlockDetectionTimeoutFactor != -1.0)
|
if (DistributedDeadlockDetectionTimeoutFactor != -1.0)
|
||||||
{
|
{
|
||||||
StartTransactionCommand();
|
StartTransactionCommand();
|
||||||
foundDeadlock = CheckForDistributedDeadlocks();
|
|
||||||
|
/*
|
||||||
|
* We don't want to run the deadlock checks if there exists
|
||||||
|
* any version mistmatch.
|
||||||
|
*/
|
||||||
|
if (CheckCitusVersion(DEBUG1))
|
||||||
|
{
|
||||||
|
foundDeadlock = CheckForDistributedDeadlocks();
|
||||||
|
}
|
||||||
|
|
||||||
CommitTransactionCommand();
|
CommitTransactionCommand();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue