Repository navigation
Commit 81dcd76
committed
fix(data): shared-record gates for search inserts, write-refresh views, and persistence
- collectRecords: remove the empty per-entity Map so records.has() returns
false once no view holds records, preventing late or post-eviction searches
from inserting rows no view evaluates.
- confirm (refreshed): include every entry sharing entity names with the
adopted entries in the commit, matching what touchWithViews does for load
and restore, so views see records a write's search updated.
- save: when a non-view entry with entities is saved, also mark views of
those entities for persistence, so the shared table they persist from
stays in sync across restarts.1 parent 86fa474 commit 81dcd76
1 file changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
345 | 351 | | |
346 | 352 | | |
347 | 353 | | |
| |||
445 | 451 | | |
446 | 452 | | |
447 | 453 | | |
| 454 | + | |
448 | 455 | | |
449 | 456 | | |
450 | 457 | | |
| |||
1053 | 1060 | | |
1054 | 1061 | | |
1055 | 1062 | | |
1056 | | - | |
1057 | | - | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1058 | 1074 | | |
1059 | 1075 | | |
1060 | 1076 | | |
| |||
0 commit comments