Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50057

Do not use StringDataSet in OperationShardingState

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

      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@mongodb.com Haley Connelly
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: