diff --git a/deno.json b/deno.json index 10d8157..c8b100d 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@izure/serializable-bptree", - "version": "5.0.1", + "version": "5.0.2", "description": "Store the B+tree flexibly, not only in-memory.", "author": "izure1 ", "license": "MIT", diff --git a/package.json b/package.json index e8a6288..1466729 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "serializable-bptree", - "version": "5.0.1", + "version": "5.0.2", "description": "Store the B+tree flexibly, not only in-memory.", "types": "./dist/types/index.d.ts", "main": "./dist/cjs/index.cjs", diff --git a/src/BPTreeAsync.ts b/src/BPTreeAsync.ts index 92cb1ee..cf5a247 100644 --- a/src/BPTreeAsync.ts +++ b/src/BPTreeAsync.ts @@ -427,8 +427,8 @@ export class BPTreeAsync extends BPTree { this.root = await this._createNode(true, [], [], true) this.strategy.head.root = this.root.id this.bufferForNodeCreate(this.root) - this.commitHeadBuffer() - this.commitNodeCreateBuffer() + await this.commitHeadBuffer() + await this.commitNodeCreateBuffer() } // loaded else {