sliftutils 1.7.115 → 1.7.116
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.d.ts +5 -3
- package/package.json +1 -1
- package/storage/ArchivesDisk.ts +8 -8
- package/storage/IArchives.d.ts +1 -1
- package/storage/IArchives.ts +2 -2
- package/storage/TransactionFile.d.ts +1 -1
- package/storage/TransactionFile.ts +11 -11
- package/storage/archiveHelpers.d.ts +3 -1
- package/storage/archiveHelpers.ts +19 -14
- package/storage/dist/ArchivesDisk.ts.cache +10 -10
- package/storage/dist/IArchives.ts.cache +2 -2
- package/storage/dist/TransactionFile.ts.cache +13 -13
- package/storage/dist/archiveHelpers.ts.cache +19 -16
- package/storage/remoteStorage/ArchivesDelayed.ts +1 -1
- package/storage/remoteStorage/blobStore.ts +4 -4
- package/storage/remoteStorage/bucketDisk.ts +2 -2
- package/storage/remoteStorage/chainStartup.ts +1 -1
- package/storage/remoteStorage/createArchives.ts +1 -1
- package/storage/remoteStorage/dist/ArchivesDelayed.ts.cache +3 -3
- package/storage/remoteStorage/dist/blobStore.ts.cache +6 -6
- package/storage/remoteStorage/dist/bucketDisk.ts.cache +4 -4
- package/storage/remoteStorage/dist/chainStartup.ts.cache +3 -3
- package/storage/remoteStorage/dist/createArchives.ts.cache +3 -3
- package/storage/remoteStorage/dist/storeSync.ts.cache +5 -5
- package/storage/remoteStorage/storeSync.ts +3 -3
|
@@ -258,7 +258,7 @@ export class StoreSync {
|
|
|
258
258
|
tally.tombstone++;
|
|
259
259
|
continue;
|
|
260
260
|
}
|
|
261
|
-
let copied = await copyArchiveFile({ from: source, to: this.store.sources[0].source, path: file.path, forceSetImmutable: true, noChecks: true, internal: true });
|
|
261
|
+
let copied = await copyArchiveFile({ from: source, to: this.store.sources[0].source, path: file.path, preserveWriteTime: true, forceSetImmutable: true, noChecks: true, internal: true });
|
|
262
262
|
if (!copied) {
|
|
263
263
|
// Undefined is two cases (see copyArchiveFile): our own disk already holding something newer is the boundary scan working as intended (our writes since the boundary outrank the neighbor's), only a genuinely unreadable file is worth a warning
|
|
264
264
|
let local = await this.store.sources[0].source.getInfo(file.path);
|
|
@@ -494,7 +494,7 @@ export class StoreSync {
|
|
|
494
494
|
}
|
|
495
495
|
let holder = await this.store.getEntryHolder(entry);
|
|
496
496
|
if (!holder) continue;
|
|
497
|
-
let copied = await copyArchiveFile({ from: holder, to: source, path: key, forceSetImmutable: true, noChecks: true, internal: true });
|
|
497
|
+
let copied = await copyArchiveFile({ from: holder, to: source, path: key, preserveWriteTime: true, forceSetImmutable: true, noChecks: true, internal: true });
|
|
498
498
|
if (!copied) {
|
|
499
499
|
// Undefined is two cases (see copyArchiveFile). The source having a NEWER file than our index (the listing we pushed from was stale) is adopted exactly the way the pull direction adopts a listing entry - and pushing our stale copy stops. Otherwise the HOLDER could not produce the file, which the next round's pull re-resolves; either way, silence here was the bug.
|
|
500
500
|
let theirs = await source.getInfo(key);
|
|
@@ -648,7 +648,7 @@ export class StoreSync {
|
|
|
648
648
|
if (index >= pending.length) return;
|
|
649
649
|
let { key, entry } = pending[index];
|
|
650
650
|
try {
|
|
651
|
-
let copied = await copyArchiveFile({ from: source, to: this.store.sources[0].source, path: key, forceSetImmutable: true, noChecks: true, internal: true });
|
|
651
|
+
let copied = await copyArchiveFile({ from: source, to: this.store.sources[0].source, path: key, preserveWriteTime: true, forceSetImmutable: true, noChecks: true, internal: true });
|
|
652
652
|
if (copied) {
|
|
653
653
|
copiedFiles++;
|
|
654
654
|
copiedBytes += copied.size;
|