From 93a73e9e4484a79bba0c6a1dfb95e08f66f641f5 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 29 Aug 2018 16:01:54 +0200 Subject: [PATCH] Revert "Fix length (the linter really should have caught this one)" This reverts commit 9a66137c623114f9aec2930f9ec2ab73d278abf0. --- packages/db-diskdown/src/store/Combined.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/db-diskdown/src/store/Combined.ts b/packages/db-diskdown/src/store/Combined.ts index 4a563b5e9..c5eae8f33 100644 --- a/packages/db-diskdown/src/store/Combined.ts +++ b/packages/db-diskdown/src/store/Combined.ts @@ -331,7 +331,7 @@ export default class Combined implements DiskStore { l.debug(() => ['readValue', debug({ key, keyAt, keyValue })]); const { valueAt, valueLength } = this._extractValueInfo(keyValue); - const value = Buffer.alloc(valueLength); + const value = Buffer.alloc(length); fs.readSync(this._fd, value, 0, valueLength, valueAt);