Repository navigation
Commit 7812d3a
committed
fix(memory): refuse a brain file whose page or registry rows name another brain
Brain.importFromSqlite checked for a single brain in brain_meta alone, then
copied every memory_pages and memory_scopes row of the file under the receiving
brain. A file whose meta names one brain and whose page or registry rows name
another now throws as a file of several brains does, before anything is copied.
Signed-off-by: jddunn <[email protected]>1 parent 014cd9d commit 7812d3a
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1758 | 1758 | | |
1759 | 1759 | | |
1760 | 1760 | | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
1761 | 1773 | | |
1762 | 1774 | | |
1763 | 1775 | | |
| |||
0 commit comments