Skip to content

Commit

Permalink
Merge pull request #1703 from Azure/dev
Browse files Browse the repository at this point in the history
Patch 10.14.1
  • Loading branch information
zezha-msft authored Mar 14, 2022
2 parents fc4b103 + 1087e51 commit 87e0ff7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

# Change Log

## Version 10.14.1

### Bug fixes
1. Fixed issue #1625 where a panic occurs during sync scanning.
2. Fixed remove issue when account has versioning enabled.

## Version 10.14.0

### New features
Expand Down
5 changes: 3 additions & 2 deletions cmd/zc_traverser_blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,10 @@ func (t *blobTraverser) createStoredObjectForBlob(preprocessor objectMorpher, bl
containerName,
)

object.blobSnapshotID = blobInfo.Snapshot
object.blobDeleted = blobInfo.Deleted
if blobInfo.VersionID != nil {
if t.includeDeleted && t.includeSnapshot {
object.blobSnapshotID = blobInfo.Snapshot
} else if t.includeDeleted && t.includeVersion && blobInfo.VersionID != nil {
object.blobVersionID = *blobInfo.VersionID
}
return object
Expand Down
5 changes: 4 additions & 1 deletion cmd/zc_traverser_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,12 @@ func (t *localTraverser) Traverse(preprocessor objectMorpher, processor objectPr

var entityType common.EntityType
if fileInfo.IsDir() {
fileInfo, err = WrapFolder(filePath, fileInfo)
newFileInfo, err := WrapFolder(filePath, fileInfo)
if err != nil {
WarnStdoutAndScanningLog(fmt.Sprintf("Failed to get last change of target at %s: %s", filePath, err))
} else {
// fileInfo becomes nil in case we fail to wrap folder.
fileInfo = newFileInfo
}

entityType = common.EEntityType.Folder()
Expand Down
2 changes: 1 addition & 1 deletion common/version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package common

const AzcopyVersion = "10.14.0"
const AzcopyVersion = "10.14.1"
const UserAgent = "AzCopy/" + AzcopyVersion
const S3ImportUserAgent = "S3Import " + UserAgent
const GCPImportUserAgent = "GCPImport " + UserAgent
Expand Down
4 changes: 1 addition & 3 deletions testSuite/scripts/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from test_autodetect_blob_type import *
from test_file_sync import *
from test_file_copy import *
from test_clfsload import *
from test_google_cloud_storage_copy import *
import glob, os
import configparser
Expand Down Expand Up @@ -212,8 +211,7 @@ def main():
print("Smoke tests starting...")
init()

test_class_to_run = [LoadUserScenario,
BlobPipingTests,
test_class_to_run = [BlobPipingTests,
File_Service_2_Service_Copy_User_Scenario,
Blob_Sync_User_Scenario,
File_Sync_User_Scenario,
Expand Down

0 comments on commit 87e0ff7

Please sign in to comment.