From 40880a155a65a3c3e3949a955474664557daaa74 Mon Sep 17 00:00:00 2001 From: Vlad Sudzilouski Date: Mon, 25 Nov 2019 17:21:34 -0800 Subject: [PATCH] Temporarily disable #648 to reduce risk of regression of bringing other change to Bohemia (#659) Temporarily disable #648 to reduce risk of regression of bringing other change to Bohemia --- .../odsp-socket-storage/src/OdspDocumentStorageManager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/drivers/odsp-socket-storage/src/OdspDocumentStorageManager.ts b/packages/drivers/odsp-socket-storage/src/OdspDocumentStorageManager.ts index 64c3c681763c..7a03c51e1b0b 100644 --- a/packages/drivers/odsp-socket-storage/src/OdspDocumentStorageManager.ts +++ b/packages/drivers/odsp-socket-storage/src/OdspDocumentStorageManager.ts @@ -34,6 +34,8 @@ import { getUrlAndHeadersWithAuth } from "./getUrlAndHeadersWithAuth"; import { OdspCache } from "./odspCache"; import { getWithRetryForTokenRefresh, throwOdspNetworkError } from "./OdspUtils"; +const blobReuseFeatureDisabled = true; + export class OdspDocumentStorageManager implements IDocumentStorageManager { // This cache is associated with mapping sha to path for previous summary which belongs to last summary handle. private blobsShaToPathCache: Map = new Map(); @@ -544,7 +546,7 @@ export class OdspDocumentStorageManager implements IDocumentStorageManager { let completePath = this.blobsShaToPathCache.get(hash); // If the cache has the hash of the blob and handle of last summary is also present, then use that to generate complete path for // the given blob. - if (!completePath || !this.lastSummaryHandle) { + if (blobReuseFeatureDisabled || !completePath || !this.lastSummaryHandle) { value = { content, encoding,