[GODRIVER-1770] GridFS download chunk size should be read from files document, not bucket Created: 19/Oct/20  Updated: 28/Oct/23  Resolved: 26/Oct/20

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.3

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When creating a GridFS download stream, we set the expected chunk size to be the bucket's chunk size. This isn't correct though because the chunk size can be overridden for individual files, so we should instead set it to the chunkSize field in the files collection document.



 Comments   
Comment by Githook User [ 26/Oct/20 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1770 Use chunkSize from files doc for download streams (#523)
Branch: release/1.4
https://github.com/mongodb/mongo-go-driver/commit/35df1be16ee6e106b685e03939df6b84df84feb5

Comment by Githook User [ 26/Oct/20 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1770 Use chunkSize from files doc for download streams (#523)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/a3016444de67d02731843ef7f185a8190489c62a

Comment by Divjot Arora (Inactive) [ 20/Oct/20 ]

https://github.com/mongodb/mongo-go-driver/pull/523

Generated at Thu Feb 08 08:37:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.