Commit b6c7176
committed
fix: prevent metadata table from being dropped during orphan reconciliation
When createCollection is called for the _metadata table and the table
already exists, the orphan reconciliation code would drop and recreate
it, destroying all collection metadata. This breaks upgrades where
Database::create() is called on an existing database.
The fix adds _metadata to the safe list alongside shared-tables checks,
ensuring the metadata table is never treated as an orphan.1 parent f121418 commit b6c7176
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1796 | 1796 | | |
1797 | 1797 | | |
1798 | 1798 | | |
1799 | | - | |
1800 | | - | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
1801 | 1803 | | |
1802 | 1804 | | |
1803 | 1805 | | |
| |||
0 commit comments