Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
6e3fd964
Commit
6e3fd964
authored
Feb 21, 2013
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless variable
Per Jeff Janes
parent
54a27868
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/backend/postmaster/pgstat.c
src/backend/postmaster/pgstat.c
+7
-4
No files found.
src/backend/postmaster/pgstat.c
View file @
6e3fd964
...
...
@@ -4386,15 +4386,19 @@ static void
pgstat_recv_inquiry
(
PgStat_MsgInquiry
*
msg
,
int
len
)
{
slist_iter
iter
;
bool
found
=
false
;
DBWriteRequest
*
newreq
;
PgStat_StatDBEntry
*
dbentry
;
elog
(
DEBUG2
,
"received inquiry for %d"
,
msg
->
databaseid
);
/*
* Find the last write request for this DB (found=true in that case).
* Plain linear search, not really worth doing any magic here (probably).
* Find the last write request for this DB. If it's older than the
* 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
)
{
...
...
@@ -4405,7 +4409,6 @@ pgstat_recv_inquiry(PgStat_MsgInquiry *msg, int len)
if
(
msg
->
cutoff_time
>
req
->
request_time
)
req
->
request_time
=
msg
->
cutoff_time
;
found
=
true
;
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment