[CXX-235] Batches with no items will break command writer Created: 20/May/14  Updated: 20/May/14  Resolved: 20/May/14

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: legacy-0.9.0

Type: Bug Priority: Blocker - P1
Reporter: Tyler Brock Assignee: Tyler Brock
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

If the batch of write_operations passed to the CommandWriter is empty we will try to end/send a command even though we should not be doing that for empty batches.



 Comments   
Comment by Githook User [ 20/May/14 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: CXX-235 add braces to enclose block for last batch
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/6e016b3b1b6d3a873a7a5cd487b7ea7d0d905fb0

Generated at Wed Feb 07 21:58:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.