Improve ref counting when deduplicating attachments on disk

This commit is contained in:
trevor-signal
2026-02-12 17:34:12 -05:00
committed by GitHub
parent ef9e437362
commit ffd962fd50
11 changed files with 374 additions and 53 deletions

View File

@@ -142,6 +142,7 @@ import updateToSchemaVersion1620 from './1620-sort-bigger-media.std.js';
import updateToSchemaVersion1630 from './1630-message-pin-message-data.std.js';
import updateToSchemaVersion1640 from './1640-key-transparency.std.js';
import updateToSchemaVersion1650 from './1650-protected-attachments.std.js';
import updateToSchemaVersion1660 from './1660-protected-attachments-non-unique.std.js';
import { DataWriter } from '../Server.node.js';
@@ -1644,6 +1645,7 @@ export const SCHEMA_VERSIONS: ReadonlyArray<SchemaUpdateType> = [
{ version: 1630, update: updateToSchemaVersion1630 },
{ version: 1640, update: updateToSchemaVersion1640 },
{ version: 1650, update: updateToSchemaVersion1650 },
{ version: 1660, update: updateToSchemaVersion1660 },
];
export class DBVersionFromFutureError extends Error {