Rename incorrect pids to globalPIDs

pull/5733/head
Halil Ozan Akgul 2022-02-23 11:39:43 +03:00
parent cbe94d26d5
commit a24e8585a1
1 changed files with 4 additions and 4 deletions

View File

@ -37,11 +37,11 @@ pg_cancel_backend(PG_FUNCTION_ARGS)
{
CheckCitusVersion(ERROR);
uint64 pid = PG_GETARG_INT64(0);
uint64 globalPID = PG_GETARG_INT64(0);
int sig = SIGINT;
uint64 timeout = 0;
bool success = CitusSignalBackend(pid, timeout, sig);
bool success = CitusSignalBackend(globalPID, timeout, sig);
PG_RETURN_BOOL(success);
}
@ -60,11 +60,11 @@ pg_terminate_backend(PG_FUNCTION_ARGS)
{
CheckCitusVersion(ERROR);
uint64 pid = PG_GETARG_INT64(0);
uint64 globalPID = PG_GETARG_INT64(0);
uint64 timeout = PG_GETARG_INT64(1);
int sig = SIGTERM;
bool success = CitusSignalBackend(pid, timeout, sig);
bool success = CitusSignalBackend(globalPID, timeout, sig);
PG_RETURN_BOOL(success);
}