mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08:00
Use LOG instead of DEBUG2 for logging invalid cancel requests. (That is,
cancel requests with an incorrect key, or with a non-existent PID). Per recent discussion on -hackers.
This commit is contained in:
parent
1e941153a2
commit
9a48d22ef5
@ -37,7 +37,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.543 2007/10/26 21:50:10 mha Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.544 2007/11/05 00:00:34 neilc Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@ -1709,17 +1709,17 @@ processCancelRequest(Port *port, void *pkt)
|
||||
}
|
||||
else
|
||||
/* Right PID, wrong key: no way, Jose */
|
||||
ereport(DEBUG2,
|
||||
(errmsg_internal("bad key in cancel request for process %d",
|
||||
backendPID)));
|
||||
ereport(LOG,
|
||||
(errmsg("bad key in cancel request for process %d",
|
||||
backendPID)));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* No matching backend */
|
||||
ereport(DEBUG2,
|
||||
(errmsg_internal("bad pid in cancel request for process %d",
|
||||
backendPID)));
|
||||
ereport(LOG,
|
||||
(errmsg("bad pid in cancel request for process %d",
|
||||
backendPID)));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user