From dc73a18ca407bf1ad9e373b9bd39d6093f9f5e74 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 8 May 2025 15:38:33 +0100 Subject: [PATCH] Merge pull request #25432 from overleaf/em-redis-buffer-strict-apply Use strict validation for the Redis buffer GitOrigin-RevId: 43e73af5deabbf3de9f5eed14f062acc5fa35e36 --- services/history-v1/storage/lib/persist_changes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/history-v1/storage/lib/persist_changes.js b/services/history-v1/storage/lib/persist_changes.js index 07ac100790..20080d20a6 100644 --- a/services/history-v1/storage/lib/persist_changes.js +++ b/services/history-v1/storage/lib/persist_changes.js @@ -206,7 +206,7 @@ async function persistChanges(projectId, allChanges, limits, clientEndVersion) { // doesn't really need a blobStore, but its signature still requires it. const blobStore = new BlobStore(projectId) await hollowSnapshot.loadFiles('hollow', blobStore) - hollowSnapshot.applyAll(changesToPersist) + hollowSnapshot.applyAll(changesToPersist, { strict: true }) const baseVersion = currentChunk.getEndVersion() await redisBackend.queueChanges( projectId,