>
> ...
>
>
> ops := []txn.Op{{
> C: "collection",
> Id: ...,
> Assert: bson.M{
> "some-field.A": "foo",
> "some-field.B": 99,
> },
> Update: ...
> }
>
> ...
>
>
> [1] If transaction operations are loaded and used from the DB (more likely
> under load when multiple runners are acting concurrently), the Insert,
> Update and Assert fields are loaded as bson.M (this is what the bson
> Unmarshaller does for interface{} typed fields). Once this happens field
> ordering is lost.
>
> If loading into a bson.M is the problem, wouldn't using a bson.M to start
with also be a problem?
John
=:->
--
Juju-dev mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/juju-dev