Skip to content

fix ListBackups for gcp and az to work with root directory#6873

Merged
deepthi merged 1 commit intovitessio:masterfrom
planetscale:yz-vtbackup-cleaner-gcp-az-compatibility
Oct 14, 2020
Merged

fix ListBackups for gcp and az to work with root directory#6873
deepthi merged 1 commit intovitessio:masterfrom
planetscale:yz-vtbackup-cleaner-gcp-az-compatibility

Conversation

@y00j
Copy link
Copy Markdown
Contributor

@y00j y00j commented Oct 14, 2020

fixes the search prefix to prevent it from becoming // when the directory is at root
Similar to #6732

Signed-off-by: Yujie Zhu yujiezhu718@gmail.com

@y00j y00j requested a review from deepthi as a code owner October 14, 2020 04:32
Signed-off-by: Yujie Zhu <yujiezhu718@gmail.com>
@y00j y00j force-pushed the yz-vtbackup-cleaner-gcp-az-compatibility branch from c5b9ddc to 287def5 Compare October 14, 2020 18:45
@deepthi deepthi changed the title fix searchPrefix for vtbackup-cleaner in gcp and az cloud fix ListBackups for gcp and az to work with root directory Oct 14, 2020
searchPrefix = objName(dir, "")
}

log.Infof("ListBackups: [azblob] container: %s, directory: %v", *containerName, searchPrefix)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this log line required? will it spam the logs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this log was originally in there, I just moved it below the searchPrefix assignment. I'm fine either way to remove it or not

Copy link
Copy Markdown
Collaborator

@deepthi deepthi Oct 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can leave it in for now and remove it later if it becomes noisy.

@y00j y00j requested a review from deepthi October 14, 2020 18:52
Copy link
Copy Markdown
Collaborator

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deepthi deepthi merged commit ed7c5eb into vitessio:master Oct 14, 2020
@deepthi deepthi deleted the yz-vtbackup-cleaner-gcp-az-compatibility branch October 14, 2020 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants