mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Remove useless variable
Per Jeff Janes
This commit is contained in:
parent
54a2786835
commit
6e3fd96463
@ -4386,15 +4386,19 @@ static void
|
|||||||
pgstat_recv_inquiry(PgStat_MsgInquiry *msg, int len)
|
pgstat_recv_inquiry(PgStat_MsgInquiry *msg, int len)
|
||||||
{
|
{
|
||||||
slist_iter iter;
|
slist_iter iter;
|
||||||
bool found = false;
|
|
||||||
DBWriteRequest *newreq;
|
DBWriteRequest *newreq;
|
||||||
PgStat_StatDBEntry *dbentry;
|
PgStat_StatDBEntry *dbentry;
|
||||||
|
|
||||||
elog(DEBUG2, "received inquiry for %d", msg->databaseid);
|
elog(DEBUG2, "received inquiry for %d", msg->databaseid);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find the last write request for this DB (found=true in that case).
|
* Find the last write request for this DB. If it's older than the
|
||||||
* Plain linear search, not really worth doing any magic here (probably).
|
* request's cutoff time, update it; otherwise there's nothing to do.
|
||||||
|
*
|
||||||
|
* Note that if a request is found, we return early and skip the below
|
||||||
|
* check for clock skew. This is okay, since the only way for a DB request
|
||||||
|
* to be present in the list is that we have been here since the last write
|
||||||
|
* round.
|
||||||
*/
|
*/
|
||||||
slist_foreach(iter, &last_statrequests)
|
slist_foreach(iter, &last_statrequests)
|
||||||
{
|
{
|
||||||
@ -4405,7 +4409,6 @@ pgstat_recv_inquiry(PgStat_MsgInquiry *msg, int len)
|
|||||||
|
|
||||||
if (msg->cutoff_time > req->request_time)
|
if (msg->cutoff_time > req->request_time)
|
||||||
req->request_time = msg->cutoff_time;
|
req->request_time = msg->cutoff_time;
|
||||||
found = true;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user