mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-16 00:03:34 +00:00
Merge pull request #139 from countextreme/master
Fix typos: snpashot -> snapshot
This commit is contained in:
@@ -1026,7 +1026,7 @@ func (manager *BackupManager) UploadSnapshot(chunkMaker *ChunkMaker, uploader *C
|
|||||||
totalUploadedSnapshotChunkSize += int64(chunkSize)
|
totalUploadedSnapshotChunkSize += int64(chunkSize)
|
||||||
totalUploadedSnapshotChunkBytes += int64(uploadSize)
|
totalUploadedSnapshotChunkBytes += int64(uploadSize)
|
||||||
} else {
|
} else {
|
||||||
LOG_DEBUG("CHUNK_EXIST", "Skipped snpashot chunk %s in the storage", chunk.GetID())
|
LOG_DEBUG("CHUNK_EXIST", "Skipped snapshot chunk %s in the storage", chunk.GetID())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ func LoadIncompleteSnapshot() (snapshot *Snapshot) {
|
|||||||
ChunkHashes: chunkHashes,
|
ChunkHashes: chunkHashes,
|
||||||
ChunkLengths: incompleteSnapshot.ChunkLengths,
|
ChunkLengths: incompleteSnapshot.ChunkLengths,
|
||||||
}
|
}
|
||||||
LOG_INFO("INCOMPLETE_LOAD", "Incomplete snpashot loaded from %s", snapshotFile)
|
LOG_INFO("INCOMPLETE_LOAD", "Incomplete snapshot loaded from %s", snapshotFile)
|
||||||
return snapshot
|
return snapshot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -664,7 +664,7 @@ func (manager *SnapshotManager) ListSnapshots(snapshotID string, revisionsToList
|
|||||||
if snapshotID == "" {
|
if snapshotID == "" {
|
||||||
snapshotIDs, err = manager.ListSnapshotIDs()
|
snapshotIDs, err = manager.ListSnapshotIDs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
LOG_ERROR("SNAPSHOT_LIST", "Failed to list all snpashots: %v", err)
|
LOG_ERROR("SNAPSHOT_LIST", "Failed to list all snapshots: %v", err)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -787,7 +787,7 @@ func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToChe
|
|||||||
if snapshotID == "" || showStatistics {
|
if snapshotID == "" || showStatistics {
|
||||||
snapshotIDs, err := manager.ListSnapshotIDs()
|
snapshotIDs, err := manager.ListSnapshotIDs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
LOG_ERROR("SNAPSHOT_LIST", "Failed to list all snpashots: %v", err)
|
LOG_ERROR("SNAPSHOT_LIST", "Failed to list all snapshots: %v", err)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1596,7 +1596,7 @@ func (manager *SnapshotManager) PruneSnapshots(selfID string, snapshotID string,
|
|||||||
// because we need to find out which chunks are not referenced.
|
// because we need to find out which chunks are not referenced.
|
||||||
snapshotIDs, err := manager.ListSnapshotIDs()
|
snapshotIDs, err := manager.ListSnapshotIDs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
LOG_ERROR("SNAPSHOT_LIST", "Failed to list all snpashots: %v", err)
|
LOG_ERROR("SNAPSHOT_LIST", "Failed to list all snapshots: %v", err)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ func checkTestSnapshots(manager *SnapshotManager, expectedSnapshots int, expecte
|
|||||||
|
|
||||||
snapshotIDs, err = manager.ListSnapshotIDs()
|
snapshotIDs, err = manager.ListSnapshotIDs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
LOG_ERROR("SNAPSHOT_LIST", "Failed to list all snpashots: %v", err)
|
LOG_ERROR("SNAPSHOT_LIST", "Failed to list all snapshots: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user