- Notifications
You must be signed in to change notification settings - Fork28
Commitda7c364
committed
Use GetCurrentTimestamp instead of instr_time in GlobalSnapshotGenerate.
CLOCK_MONOTONIC is not ok because it is time since server start, which meansvalues between nodes are totally uncorrelated. So resort to use usual real timeclock GetCurrentTimestamp (gettimeofday); we should now ensure monotonicity onour own, but this was done previously anyway.Ideally, we should use clock_gettime with CLOCK_REALTIME which might providenanosecond resolution.1 parent3de100c commitda7c364
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
368 | 368 |
| |
369 | 369 |
| |
370 | 370 |
| |
371 |
| - | |
372 |
| - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
373 | 374 |
| |
374 | 375 |
| |
375 | 376 |
| |
376 | 377 |
| |
377 | 378 |
| |
378 |
| - | |
379 | 379 |
| |
380 | 380 |
| |
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
385 | 385 |
| |
386 |
| - | |
387 |
| - | |
| 386 | + | |
388 | 387 |
| |
389 | 388 |
| |
390 | 389 |
| |
|
0 commit comments
Comments
(0)