- Notifications
You must be signed in to change notification settings - Fork5
Commitb1e1862
committed
Coordinate log_line_prefix options 'm' and 'n' to share a timeval.
Commitf828654 introduced the 'n' option, but it invokedgettimeofday() independently of the 'm' option. If both options werein use (or multiple 'n' options), or if 'n' was in use along withcsvlog, then the reported times could be different for the same logmessage.To fix, initialize a global variable with gettimeofday() once per logmessage, and use that for both formats.Don't bother coordinating the time for the 't' option, which has muchlower resolution.Per complaint by Alvaro Herrera.1 parentd94c36a commitb1e1862
1 file changed
+23
-9
lines changedLines changed: 23 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
146 |
| - | |
147 |
| - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
148 | 149 |
| |
149 | 150 |
| |
| 151 | + | |
| 152 | + | |
| 153 | + | |
150 | 154 |
| |
151 | 155 |
| |
152 | 156 |
| |
| |||
2195 | 2199 |
| |
2196 | 2200 |
| |
2197 | 2201 |
| |
2198 |
| - | |
2199 | 2202 |
| |
2200 | 2203 |
| |
2201 | 2204 |
| |
2202 |
| - | |
2203 |
| - | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
2204 | 2212 |
| |
2205 | 2213 |
| |
2206 | 2214 |
| |
| |||
2213 | 2221 |
| |
2214 | 2222 |
| |
2215 | 2223 |
| |
2216 |
| - | |
| 2224 | + | |
2217 | 2225 |
| |
2218 | 2226 |
| |
2219 | 2227 |
| |
| |||
2440 | 2448 |
| |
2441 | 2449 |
| |
2442 | 2450 |
| |
2443 |
| - | |
2444 | 2451 |
| |
2445 | 2452 |
| |
2446 |
| - | |
2447 |
| - | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
2448 | 2461 |
| |
2449 | 2462 |
| |
2450 | 2463 |
| |
| |||
2825 | 2838 |
| |
2826 | 2839 |
| |
2827 | 2840 |
| |
| 2841 | + | |
2828 | 2842 |
| |
2829 | 2843 |
| |
2830 | 2844 |
| |
|
0 commit comments
Comments
(0)