Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Revert "chore(NA): update lmdb store to v0.8.15 (elastic#83726)"
Browse files Browse the repository at this point in the history
This reverts commit f2d97a9.
  • Loading branch information
spalger committed Nov 19, 2020
1 parent 02cda96 commit 70dd7f8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"less": "npm:@elastic/less@2.7.3-kibana",
"license-checker": "^16.0.0",
"listr": "^0.14.1",
"lmdb-store": "^0.8.15",
"lmdb-store": "^0.8.11",
"load-grunt-config": "^3.0.1",
"loader-utils": "^1.2.3",
"log-symbols": "^2.2.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/kbn-optimizer/src/node/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,23 @@ export class Cache {
this.codes = LmdbStore.open({
name: 'codes',
path: CACHE_DIR,
// @ts-expect-error See https://github.com/DoctorEvidence/lmdb-store/pull/18
maxReaders: 500,
});

// @ts-expect-error See https://github.com/DoctorEvidence/lmdb-store/pull/18
this.atimes = this.codes.openDB({
name: 'atimes',
encoding: 'string',
});

// @ts-expect-error See https://github.com/DoctorEvidence/lmdb-store/pull/18
this.mtimes = this.codes.openDB({
name: 'mtimes',
encoding: 'string',
});

// @ts-expect-error See https://github.com/DoctorEvidence/lmdb-store/pull/18
this.sourceMaps = this.codes.openDB({
name: 'sourceMaps',
encoding: 'msgpack',
Expand Down
25 changes: 15 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18798,24 +18798,24 @@ livereload-js@^2.3.0:
resolved "https://registry.yarnpkg.com/livereload-js/-/livereload-js-2.4.0.tgz#447c31cf1ea9ab52fc20db615c5ddf678f78009c"
integrity sha512-XPQH8Z2GDP/Hwz2PCDrh2mth4yFejwA1OZ/81Ti3LgKyhDcEjsSsqFWZojHG0va/duGd+WyosY7eXLDoOyqcPw==

lmdb-store-0.9@0.7.3:
version "0.7.3"
resolved "https://registry.yarnpkg.com/lmdb-store-0.9/-/lmdb-store-0.9-0.7.3.tgz#c2cb27dfa916ab966cceed692c67e4236813104a"
integrity sha512-t8iCnN6T3NZPFelPmjYIjCg+nhGbOdc0xcHCG40v01AWRTN49OINSt2k/u+16/2/HrI+b6Ssb8WByXUhbyHz6w==
lmdb-store-0.9@0.7.2:
version "0.7.2"
resolved "https://registry.yarnpkg.com/lmdb-store-0.9/-/lmdb-store-0.9-0.7.2.tgz#45b907a46d0a676fee955629bd2f70f06efb26bb"
integrity sha512-/MO8G6p4l7ku1ltCCdE/2ZOtSQBSM0B02vIemMHjoKgjE/fooanJYXIFwtZYM5r/hBDxmO+L3q5ASAXbfHQ6pQ==
dependencies:
fs-extra "^9.0.1"
msgpackr "^0.5.3"
nan "^2.14.1"
node-gyp-build "^4.2.3"
weak-lru-cache "^0.3.9"
weak-lru-cache "^0.2.0"

lmdb-store@^0.8.15:
version "0.8.15"
resolved "https://registry.yarnpkg.com/lmdb-store/-/lmdb-store-0.8.15.tgz#4efb0341c2df505dd6f3a7f26f834f0a142a80a2"
integrity sha512-4Q0WZh2FmcJC6esZRUWMfkCmNiz0WU9cOgrxt97ZMTnVfHyOdZhtrt0oOF5EQPfetxxJf/BorKY28aX92R6G6g==
lmdb-store@^0.8.11:
version "0.8.11"
resolved "https://registry.yarnpkg.com/lmdb-store/-/lmdb-store-0.8.11.tgz#7f7c756a115ceab32c51c0948444bfd5d1716ab3"
integrity sha512-CFgxh2/TL1NXyJ8FQPXY50O/gADxih7Gx0RjKRScGlyxihqSLd/fGzMkbvDdeAOAS8bsnYpLojAMTSeNiwN8dQ==
dependencies:
fs-extra "^9.0.1"
lmdb-store-0.9 "0.7.3"
lmdb-store-0.9 "0.7.2"
msgpackr "^0.5.4"
nan "^2.14.1"
node-gyp-build "^4.2.3"
Expand Down Expand Up @@ -29141,6 +29141,11 @@ wcwidth@^1.0.1:
dependencies:
defaults "^1.0.3"

weak-lru-cache@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/weak-lru-cache/-/weak-lru-cache-0.2.0.tgz#447379ccff6dfda1b7a9566c9ef168260be859d1"
integrity sha512-M1l5CzKvM7maa7tCbtL0NW6sOnp8gqup853+9Aq7GL0XNWKNnFOkeE3v3Z5X2IeMzedPwQyPbi4RlFvD6rxs7A==

weak-lru-cache@^0.3.9:
version "0.3.9"
resolved "https://registry.yarnpkg.com/weak-lru-cache/-/weak-lru-cache-0.3.9.tgz#9e56920d4115e8542625d8ef8cc278cbd97f7624"
Expand Down

0 comments on commit 70dd7f8

Please sign in to comment.