mirror of
https://github.com/postgres/postgres.git
synced 2025-06-10 09:21:54 +03:00
Silence compiler warning
Caused by the backpatch of f650882 past the point where interrupt handling was changed. Noted by Dean Rasheed
This commit is contained in:
parent
ea853db4a5
commit
f832a1e9e9
@ -1281,7 +1281,6 @@ throttle(size_t increment)
|
|||||||
int64 elapsed,
|
int64 elapsed,
|
||||||
elapsed_min,
|
elapsed_min,
|
||||||
sleep;
|
sleep;
|
||||||
int wait_result;
|
|
||||||
|
|
||||||
if (throttling_counter < 0)
|
if (throttling_counter < 0)
|
||||||
return;
|
return;
|
||||||
@ -1304,9 +1303,9 @@ throttle(size_t increment)
|
|||||||
* (TAR_SEND_SIZE / throttling_sample * elapsed_min_unit) should be
|
* (TAR_SEND_SIZE / throttling_sample * elapsed_min_unit) should be
|
||||||
* the maximum time to sleep. Thus the cast to long is safe.
|
* the maximum time to sleep. Thus the cast to long is safe.
|
||||||
*/
|
*/
|
||||||
wait_result = WaitLatch(&MyWalSnd->latch,
|
WaitLatch(&MyWalSnd->latch,
|
||||||
WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH,
|
WL_LATCH_SET | WL_TIMEOUT | WL_POSTMASTER_DEATH,
|
||||||
(long) (sleep / 1000));
|
(long) (sleep / 1000));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user