mirror of https://github.com/citusdata/citus.git
Address review
parent
10f4777aaf
commit
a48f2743bf
|
@ -327,7 +327,7 @@ StartNodeUserDatabaseConnection(uint32 flags, const char *hostname, int32 port,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ConnectionHashEntry *entry = hash_search(ConnectionHash, &key, HASH_ENTER, &found);
|
ConnectionHashEntry *entry = hash_search(ConnectionHash, &key, HASH_ENTER, &found);
|
||||||
if (!(found && entry->isValid))
|
if (!found || !entry->isValid)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We are just building hash entry or previously it was left in an
|
* We are just building hash entry or previously it was left in an
|
||||||
|
|
|
@ -706,10 +706,7 @@ CitusMaintenanceDaemonMain(Datum main_arg)
|
||||||
timeout = Min(timeout, Recover2PCInterval);
|
timeout = Min(timeout, Recover2PCInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* the config value -1 disables the distributed deadlock detection */
|
||||||
* Execute only on the maintenance database, if it configured, otherwise run from every daemon.
|
|
||||||
* The config value -1 disables the distributed deadlock detection
|
|
||||||
*/
|
|
||||||
if (DistributedDeadlockDetectionTimeoutFactor != -1.0)
|
if (DistributedDeadlockDetectionTimeoutFactor != -1.0)
|
||||||
{
|
{
|
||||||
double deadlockTimeout =
|
double deadlockTimeout =
|
||||||
|
@ -736,7 +733,6 @@ CitusMaintenanceDaemonMain(Datum main_arg)
|
||||||
foundDeadlock = CheckForDistributedDeadlocks();
|
foundDeadlock = CheckForDistributedDeadlocks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CommitTransactionCommand();
|
CommitTransactionCommand();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue