sliftutils 1.4.71 → 1.4.72
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/package.json
CHANGED
|
@@ -618,9 +618,7 @@ export class BulkDatabaseBase<T extends { key: string }> {
|
|
|
618
618
|
this.mergeInFlight = true;
|
|
619
619
|
const stopHeartbeat = startMergeFileLockHeartbeat(storage, writerId);
|
|
620
620
|
try {
|
|
621
|
-
let t = Date.now();
|
|
622
621
|
await this.testMergeINTERNAL_DO_NOT_CALL();
|
|
623
|
-
console.log(` [autocompact] ${this.name}: merged (${Date.now() - t}ms)`);
|
|
624
622
|
} finally {
|
|
625
623
|
stopHeartbeat();
|
|
626
624
|
await releaseMergeFileLock(storage, writerId);
|
|
@@ -608,10 +608,13 @@ export async function autocompactBulkDatabases(root: string): Promise<void> {
|
|
|
608
608
|
.filter(d => d.isDirectory()).map(d => d.name);
|
|
609
609
|
} catch { continue; } // no bulkDatabases2 here
|
|
610
610
|
for (const name of names) {
|
|
611
|
+
const start = Date.now();
|
|
612
|
+
console.log(` [autocompact] ${name}: starting merge…`);
|
|
611
613
|
try {
|
|
612
614
|
await getCompactor(baseDir, name).tryMergeNow();
|
|
615
|
+
console.log(` [autocompact] ${name}: done (${Date.now() - start}ms)`);
|
|
613
616
|
} catch (e) {
|
|
614
|
-
console.warn(` [autocompact] ${name}: failed — ${(e as Error).message}`);
|
|
617
|
+
console.warn(` [autocompact] ${name}: failed after ${Date.now() - start}ms — ${(e as Error).message}`);
|
|
615
618
|
}
|
|
616
619
|
}
|
|
617
620
|
}
|