Skip to content

Commit

Permalink
Use listObjectsV1 for GCS S3 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Mar 3, 2020
1 parent b65d679 commit 6a2cfd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/client-s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,11 @@ func (c *s3Client) SetAccess(bucketPolicy string, isJSON bool) *probe.Error {

// listObjectWrapper - select ObjectList version depending on the target hostname
func (c *s3Client) listObjectWrapper(bucket, object string, isRecursive bool, doneCh chan struct{}, metadata bool) <-chan minio.ObjectInfo {
if isGoogle(c.targetURL.Host) {
// Google Cloud S3 layer doesn't implement ListObjectsV2 implementation
// https://github.com/minio/mc/issues/3073
return c.api.ListObjects(bucket, object, isRecursive, doneCh)
}
if metadata {
return c.api.ListObjectsV2WithMetadata(bucket, object, isRecursive, doneCh)
}
Expand Down

0 comments on commit 6a2cfd0

Please sign in to comment.