dataply 0.0.22-alpha.2 → 0.0.22-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2 -4
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -2495,15 +2495,13 @@ var BPTreeSyncTransaction = class extends BPTreeTransaction {
|
|
|
2495
2495
|
commit(label) {
|
|
2496
2496
|
let result = this.mvcc.commit(label);
|
|
2497
2497
|
if (result.success) {
|
|
2498
|
-
const isRootTx = this.rootTx
|
|
2499
|
-
if (isRootTx) {
|
|
2498
|
+
const isRootTx = this.rootTx === this;
|
|
2499
|
+
if (!isRootTx) {
|
|
2500
2500
|
result = this.rootTx.commit(label);
|
|
2501
2501
|
if (result.success) {
|
|
2502
2502
|
this.rootTx.rootId = this.rootId;
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
|
-
if (result.success) {
|
|
2506
|
-
}
|
|
2507
2505
|
}
|
|
2508
2506
|
return result;
|
|
2509
2507
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dataply",
|
|
3
|
-
"version": "0.0.22-alpha.
|
|
3
|
+
"version": "0.0.22-alpha.3",
|
|
4
4
|
"description": "A lightweight storage engine for Node.js with support for MVCC, WAL.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "izure <admin@izure.org>",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"hookall": "^2.2.0",
|
|
50
50
|
"mvcc-api": "^1.3.3",
|
|
51
51
|
"ryoiki": "^1.2.0",
|
|
52
|
-
"serializable-bptree": "^8.1.
|
|
52
|
+
"serializable-bptree": "^8.1.6"
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|