Commit 3179701
committed
Convert archiver's force_dir_scan variable to an atomic variable.
Commit bd5132d introduced new atomic read/write functions with
full barrier semantics, which are intended to simplify converting
non-performance-critical code to use atomic variables. This commit
demonstrates one such conversion.
Reviewed-by: Yong Li
Discussion: https://postgr.es/m/20231110205128.GB1315705%40nathanxps131 parent bd5132d commit 3179701
1 file changed
+5
-16
lines changed| 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