forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit38cc085
committed
Simplify main waiting loop of the archiver process
As coded, the timeout given to WaitLatch() was always equal toPGARCH_AUTOWAKE_INTERVAL, as time() was called two times repeatedly.This simplification could have been done ind75288f.While on it, this adjusts a comment in pgarch.c to describe the archiverin a more neutral way.Author: Sravan Kumar, Nathan BossartReviewed-by: Kyotaro HoriguchiDiscussion:https://postgr.es/m/CA+=NbjjqYE9-Lnw7H7DAiS5jebmoMikwZQb_sBP7kgBCn9q6Hg@mail.gmail.com1 parentfbed4bc commit38cc085
1 file changed
+11
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
305 | | - | |
306 | | - | |
| 304 | + | |
| 305 | + | |
307 | 306 | | |
308 | 307 | | |
309 | 308 | | |
| |||
335 | 334 | | |
336 | 335 | | |
337 | 336 | | |
338 | | - | |
339 | 337 | | |
340 | 338 | | |
341 | 339 | | |
342 | | - | |
343 | | - | |
| 340 | + | |
344 | 341 | | |
345 | 342 | | |
346 | 343 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
362 | 352 | | |
363 | 353 | | |
364 | 354 | | |
| |||
0 commit comments
Comments
(0)