@typeberry/jam 0.10.0-4da4cc0 → 0.10.0-89fc6fa
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/index.js +5 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -180820,30 +180820,29 @@ async function mainFuzz(fuzzConfig, withRelPath) {
|
|
|
180820
180820
|
if (hybridStateBackend === FUZZ_DB_FJALL) {
|
|
180821
180821
|
// fjall-hybrid: manage a reused values session.
|
|
180822
180822
|
// Rebuild it periodically to avoid LSM read amplification.
|
|
180823
|
-
const fjallSessionPath = `${withRelPath(fuzzDbBase)}/${FUZZ_FJALL_VALUES_SUBDIR}`;
|
|
180824
180823
|
if (resetCount === 1) {
|
|
180825
180824
|
// First reset: start from a clean slate.
|
|
180826
180825
|
await wipeFuzzDb(fuzzDbBase);
|
|
180827
|
-
fjallSession = await FjallValuesSession.open(
|
|
180826
|
+
fjallSession = await FjallValuesSession.open(`${withRelPath(fuzzDbBase)}/${FUZZ_FJALL_VALUES_SUBDIR}`, {
|
|
180828
180827
|
ephemeral: true,
|
|
180829
180828
|
cacheSizeBytes: FUZZ_FJALL_CACHE_BYTES,
|
|
180830
180829
|
});
|
|
180831
|
-
main_fuzz_logger.info `🗄️ Opened reusable fjall values session at ${
|
|
180830
|
+
main_fuzz_logger.info `🗄️ Opened reusable fjall values session at ${withRelPath(fuzzDbBase)}/${FUZZ_FJALL_VALUES_SUBDIR}`;
|
|
180832
180831
|
}
|
|
180833
180832
|
if (resetCount % REBUILD_FJALL_SESSION_EVERY === 0 && fjallSession !== null) {
|
|
180834
180833
|
// Periodic rebuild: close, wipe session dir, and reopen.
|
|
180835
180834
|
const session = fjallSession;
|
|
180836
180835
|
fjallSession = null;
|
|
180837
180836
|
await session.close().catch(() => { });
|
|
180838
|
-
await wipeFuzzDb(
|
|
180837
|
+
await wipeFuzzDb(`${fuzzDbBase}/${FUZZ_FJALL_VALUES_SUBDIR}`).catch(() => { });
|
|
180839
180838
|
}
|
|
180840
180839
|
if (fjallSession === null) {
|
|
180841
180840
|
// No active session: create a fresh one.
|
|
180842
|
-
fjallSession = await FjallValuesSession.open(
|
|
180841
|
+
fjallSession = await FjallValuesSession.open(`${withRelPath(fuzzDbBase)}/${FUZZ_FJALL_VALUES_SUBDIR}`, {
|
|
180843
180842
|
ephemeral: true,
|
|
180844
180843
|
cacheSizeBytes: FUZZ_FJALL_CACHE_BYTES,
|
|
180845
180844
|
});
|
|
180846
|
-
main_fuzz_logger.info `🗄️ Opened reusable fjall values session at ${
|
|
180845
|
+
main_fuzz_logger.info `🗄️ Opened reusable fjall values session at ${withRelPath(fuzzDbBase)}/${FUZZ_FJALL_VALUES_SUBDIR}`;
|
|
180847
180846
|
}
|
|
180848
180847
|
}
|
|
180849
180848
|
else {
|