coinbase / mongobetween

Apache License 2.0
107 stars 45 forks source link

Transaction and cursor server pinning support added #45

Closed taganaka closed 2 years ago

taganaka commented 2 years ago

Hey there!

This PR aims to implement 2 known missing features:

Cursors are pinned to a server selection by using <cursorID>-<collection-name> as unique identifier (could't find better identifier)

Transactions pinning use lsid and that should be random enough to guarantee uniqueness among different connections