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

Do not use StringDataSet in OperationShardingState

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              haley.connelly Haley Connelly
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: