Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2379

Optimize txnNumber rewriting

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: libmongoc
    • Labels:

      Each time we send a write command in a batch we must increment the value in its txnNumber field. I'd thought it was a good idea to keep a bson_iter_t permanently located at that field and use bson_iter_overwrite_int64 to increment the number, but something was wrong with that and it had to be reverted:

      https://github.com/jmikola/mongo-c-driver/commit/c2dd0d4a5a69ef74adc01e2d3a0f879cf9c075f9

      Investigate whether it's possible to avoid re-locating the txnNumber field for each command in the batch.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: