Commit 5a0f9df
committed
refactor(core.utils): drop on-disk schema-version mechanism
This is a pre-release branch -- nobody has caches on disk that need
to survive a version bump, and the wipe-on-mismatch path is where both
recent roborev findings have come from. Drop the entire schema-file
mechanism: no _FILESTREAM_BACKEND_SCHEMA, no _FILESTREAM_SCHEMA_VERSION,
no SCHEMA_VERSION file, no schema-mismatch wipe in __init__.
``_KEY_SCHEMA_VERSION`` stays (still mixed into every cache key's
hash). A bump still invalidates old entries -- their hash is now
different, so lookups under the same logical key miss and route to a
new on-disk path. Old entries become orphans, harmless, reaped on the
next eviction pass against the size cap.
If a real format-incompatible change ever lands post-release, that PR
can introduce a fresh, scoped versioning mechanism designed against
the real backwards-compat scenario instead of speculation.
Tests: removed wipe-on-mismatch and locked-marker tests (no longer
applicable). Replaced the key-schema-bump test with one that asserts
the new orphan-harmlessly semantic.1 parent 7533b87 commit 5a0f9df
2 files changed
Lines changed: 31 additions & 124 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | 1000 | | |
1011 | 1001 | | |
1012 | | - | |
1013 | 1002 | | |
1014 | 1003 | | |
1015 | 1004 | | |
| |||
1317 | 1306 | | |
1318 | 1307 | | |
1319 | 1308 | | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
1334 | | - | |
1335 | | - | |
1336 | | - | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
1337 | 1324 | | |
1338 | 1325 | | |
1339 | 1326 | | |
| |||
1361 | 1348 | | |
1362 | 1349 | | |
1363 | 1350 | | |
1364 | | - | |
1365 | 1351 | | |
1366 | 1352 | | |
1367 | 1353 | | |
1368 | 1354 | | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
1395 | 1355 | | |
1396 | 1356 | | |
1397 | 1357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | 840 | | |
878 | 841 | | |
879 | 842 | | |
| |||
1498 | 1461 | | |
1499 | 1462 | | |
1500 | 1463 | | |
1501 | | - | |
| 1464 | + | |
1502 | 1465 | | |
1503 | 1466 | | |
1504 | 1467 | | |
| |||
1786 | 1749 | | |
1787 | 1750 | | |
1788 | 1751 | | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | | - | |
1804 | | - | |
1805 | | - | |
1806 | | - | |
1807 | | - | |
1808 | | - | |
1809 | | - | |
1810 | | - | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1811 | 1758 | | |
1812 | 1759 | | |
1813 | 1760 | | |
1814 | 1761 | | |
1815 | 1762 | | |
1816 | | - | |
1817 | | - | |
| 1763 | + | |
| 1764 | + | |
1818 | 1765 | | |
1819 | 1766 | | |
1820 | | - | |
1821 | | - | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | 1767 | | |
1826 | 1768 | | |
1827 | | - | |
| 1769 | + | |
| 1770 | + | |
1828 | 1771 | | |
1829 | | - | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
1830 | 1777 | | |
1831 | 1778 | | |
1832 | 1779 | | |
| |||
0 commit comments