@harperfast/rocksdb-js 0.1.13 → 0.1.14
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/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
package/dist/index.mjs
CHANGED
|
@@ -1776,11 +1776,13 @@ Object.defineProperty(TransactionLog.prototype, "query", { value({ start, end, e
|
|
|
1776
1776
|
size = logBuffer.size ?? (logBuffer.size = transactionLog.getLogFileSize(logBuffer.logId));
|
|
1777
1777
|
if (position >= size) {
|
|
1778
1778
|
const nextLogBuffer = getLogMemoryMap(transactionLog, logBuffer.logId + 1);
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1779
|
+
if (nextLogBuffer) {
|
|
1780
|
+
dataView = nextLogBuffer.dataView;
|
|
1781
|
+
logBuffer = nextLogBuffer;
|
|
1782
|
+
if (latestLogId > logBuffer.logId) size = logBuffer.size ?? (logBuffer.size = transactionLog.getLogFileSize(logBuffer.logId));
|
|
1783
|
+
else size = latestSize;
|
|
1784
|
+
position = TRANSACTION_LOG_FILE_HEADER_SIZE;
|
|
1785
|
+
}
|
|
1784
1786
|
}
|
|
1785
1787
|
}
|
|
1786
1788
|
}
|
|
@@ -1883,7 +1885,7 @@ function loadLastPosition(transactionLog, readUncommitted) {
|
|
|
1883
1885
|
//#region src/index.ts
|
|
1884
1886
|
const versions = {
|
|
1885
1887
|
rocksdb: version,
|
|
1886
|
-
"rocksdb-js": "0.1.
|
|
1888
|
+
"rocksdb-js": "0.1.14"
|
|
1887
1889
|
};
|
|
1888
1890
|
|
|
1889
1891
|
//#endregion
|