Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

y00j
Copy link
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
Member

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
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
Member

@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
Member

@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