[SERVER-5720] GridFS::setChunkSize rejects all sizes but 0 Created: 28/Apr/12  Updated: 11/Jul/16  Resolved: 31/May/12

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: 2.1.2

Type: Bug Priority: Major - P3
Reporter: Artem Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: driver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debain Wheezy 64-bit


Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Method GridFS::setChunkSize in mongo/client/gridfs.cpp rejects all values but 0.
There is an assertion in that method that checks for "size == 0" whilst it should check for "size != 0".



 Comments   
Comment by auto [ 31/May/12 ]

Author:

{u'login': u'', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-5720 fixed compile error in linux
Branch: master
https://github.com/mongodb/mongo/commit/ffa7c4dcce075a6d18de13b7c05fd0dae16bfa7e

Comment by auto [ 31/May/12 ]

Author:

{u'login': u'', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-5720 GridFS::setChunkSize rejects all sizes but 0
Branch: master
https://github.com/mongodb/mongo/commit/da894a5500d87a35a5d6574d363e681487bf64d1

Comment by Artem [ 29/Apr/12 ]

Actually I don't know what's wrong with that assertion, but it keeps firing.
Maybe "massert" parameters are in the wrong order?

Generated at Thu Feb 08 03:09:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.