[GODRIVER-583] Add RunCommands helper to run multiple commands on the same connection Created: 28/Sep/18 Updated: 07/May/19 Resolved: 07/May/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Shane Harvey | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | mgomirror | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
In order to simulate write concern for write commands which do not support it (createIndexes before 3.4 and collMod before 3.6) mongomirror needs to be able to run two commands back to back on the same connection. One way to support this would be to provide a high level RunCommands helper that runs multiple commands sequentially on the same connection. Credit to david.golden for the idea. |
| Comments |
| Comment by Divjot Arora (Inactive) [ 07/May/19 ] |
|
From an offline conversation with david.golden: this is needed for users mirroring onto server versions < 3.6. We don't think this is a common use case, so closing as won't fix and we can revisit later if needed. |
| Comment by David Golden [ 28/Sep/18 ] |
|
However, if those are the only two commands, it might be reasonable for the driver to implement them in a way that emulates write concern on older servers. The driver already supports creating indexes, so the only new command to implement would be collection modification. |