Open qm3ster opened 2 months ago
inserted_ids
is not a public field of InsertManyError
; how are you accessing it?
Oh, that's wild, must have only been in debug prints so far! I do need access to that as well, as available in other drivers. Should I make an additional issue for that?
While investigating how this is happening, I fixed this issue for my usage for now, and submitted that as a PR. I believe that the approach I took has an overall correct vibe, but some of the details like naming may need to be reviewed before I can apply a similar fix in some other places.
Versions/Environment
Describe the bug
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
_id
s are new b. an ordered insert where the first_id
s are new and a later one is duplicateinserted_ids
P.S:
I would really love to see
inserted_ids
be aIndexMap
orVec<(K,V)>
rather than aHashMap
(what we have now) that randomizes order or aBTreeMap
that sorts the keys even though they are ordered in the server response.P.P.S:
The commit template says
There is no
CONTRIBUTING.md
in the repository :v If it's reffering to github.com/mongodb/mongo/CONTRIBUTING.rst That now redirects to (github.com/mongodb/mongo/wiki)[https://github.com/mongodb/mongo/wiki] which tells me bug reports go in Jira and not here, and how to format my C++