Repository navigation
Commit 2bc3eac
committed
fix(memory): read a scope's compile watermark in the scope's own turn
Two compiles of one scope at once (two compileWiki() calls, or close() beside
an explicit compile) both read the watermark before the first entered the
scope's queue. The second then compiled from the old watermark and sent the
same traces to the model again. The watermark is now read once the compile's
turn comes, so a compile that waited starts where the earlier one left it; a
scope deleted meanwhile is skipped.
Signed-off-by: jddunn <[email protected]>1 parent 7812d3a commit 2bc3eac
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1827 | 1827 | | |
1828 | 1828 | | |
1829 | 1829 | | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
1830 | 1837 | | |
1831 | | - | |
| 1838 | + | |
1832 | 1839 | | |
1833 | 1840 | | |
1834 | 1841 | | |
| |||
0 commit comments