diff options
author | Magnus Hagander <magnus@hagander.net> | 2017-01-01 13:23:43 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2017-01-01 13:25:01 +0100 |
commit | f832a1e9e9a889c1c08a60db5520327bc0569fd6 (patch) | |
tree | 319bf64444aee78b162e246a7fde78bb5503a414 /src/backend/replication/basebackup.c | |
parent | ea853db4a58fe8c0fcfe7f945f5ca5c800264e5a (diff) | |
download | postgresql-f832a1e9e9a889c1c08a60db5520327bc0569fd6.tar.gz postgresql-f832a1e9e9a889c1c08a60db5520327bc0569fd6.zip |
Silence compiler warning
Caused by the backpatch of f650882 past the point where interrupt
handling was changed.
Noted by Dean Rasheed
Diffstat (limited to 'src/backend/replication/basebackup.c')
-rw-r--r-- | src/backend/replication/basebackup.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c index 3c7a092ff21..bcb5eff620b 100644 --- a/src/backend/replication/basebackup.c +++ b/src/backend/replication/basebackup.c @@ -1281,7 +1281,6 @@ throttle(size_t increment) int64 elapsed, elapsed_min, sleep; - int wait_result; if (throttling_counter < 0) return; @@ -1304,9 +1303,9 @@ throttle(size_t increment) * (TAR_SEND_SIZE / throttling_sample * elapsed_min_unit) should be * the maximum time to sleep. Thus the cast to long is safe. */ - wait_result = WaitLatch(&MyWalSnd->latch, - WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH, - (long) (sleep / 1000)); + WaitLatch(&MyWalSnd->latch, + WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH, + (long) (sleep / 1000)); } /* |