Do not use StringDataSet in OperationShardingState

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Sharding 2020-08-10
    • 95
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      https://github.com/mongodb/mongo/blob/f284ee159e0319b9071661385f7ff421946a821f/src/mongo/db/index_builds_coordinator_mongod.cpp#L206-L209

      StringData is used for storing unowned strings and the original strings can get freed, so they should not be used in OperationShardingState which has the same life time as the operation context.

              Assignee:
              Haley Connelly
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: