forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3179701
committed
Convert archiver's force_dir_scan variable to an atomic variable.
Commitbd5132d introduced new atomic read/write functions withfull barrier semantics, which are intended to simplify convertingnon-performance-critical code to use atomic variables. This commitdemonstrates one such conversion.Reviewed-by: Yong LiDiscussion:https://postgr.es/m/20231110205128.GB1315705%40nathanxps131 parentbd5132d commit3179701
1 file changed
+5
-16
lines changedLines changed: 5 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 | 48 |
| |
50 | 49 |
| |
51 | 50 |
| |
| |||
83 | 82 |
| |
84 | 83 |
| |
85 | 84 |
| |
86 |
| - | |
| 85 | + | |
87 | 86 |
| |
88 |
| - | |
89 |
| - | |
90 |
| - | |
| 87 | + | |
91 | 88 |
| |
92 | 89 |
| |
93 | 90 |
| |
| |||
174 | 171 |
| |
175 | 172 |
| |
176 | 173 |
| |
177 |
| - | |
| 174 | + | |
178 | 175 |
| |
179 | 176 |
| |
180 | 177 |
| |
| |||
545 | 542 |
| |
546 | 543 |
| |
547 | 544 |
| |
548 |
| - | |
549 | 545 |
| |
550 | 546 |
| |
551 | 547 |
| |
552 | 548 |
| |
553 | 549 |
| |
554 |
| - | |
555 |
| - | |
556 |
| - | |
557 |
| - | |
558 |
| - | |
559 |
| - | |
| 550 | + | |
560 | 551 |
| |
561 | 552 |
| |
562 | 553 |
| |
| |||
707 | 698 |
| |
708 | 699 |
| |
709 | 700 |
| |
710 |
| - | |
711 |
| - | |
712 |
| - | |
| 701 | + | |
713 | 702 |
| |
714 | 703 |
| |
715 | 704 |
| |
|
0 commit comments
Comments
(0)