Commit 6a1b2e8
committed
playground: stamp updatedb database with current time
Running the new locate/updatedb tests on real wasm surfaced a UX bug: updatedb
writes its database into the virtual filesystem with epoch (1970) timestamps,
so every subsequent locate warned "database is more than 8 days old (actual age
is 20626.6 days)". That warning also went to stderr, which the dispatcher merges
into the result and treats as pipeline-ending, breaking `locate ... | ...`.
Stamp the freshly-built database with "now" (same stat() patch used for the
sample files) so locate stays quiet and its stderr stays empty.1 parent 2cddc81 commit 6a1b2e8
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
527 | 542 | | |
528 | 543 | | |
529 | 544 | | |
| |||
727 | 742 | | |
728 | 743 | | |
729 | 744 | | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
730 | 753 | | |
731 | 754 | | |
732 | 755 | | |
| |||
0 commit comments