-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Go Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
Driver v2 made IndexView().DropAll() no longer return the server’s response, from which `nIndexesWas` could be extracted.
The idea was that a pre-check can be done to learn the # of indexes before dropping any, which obviates the actual server response.
This is wrong, though, because there could be an index creation or drop between the pre-check and the DropAll() call. So v2 deleted useful information from this API.
Definition of done
Restore the format from v1’s DropAll().
Pitfalls
- This will break applications written against v2’s DropAll()/.
- related to
-
GODRIVER-961 Change IndexView.DropAll to not return bson.Raw
-
- Closed
-