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

Make the StringData reassignment operator stricter

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • ALL

      I added a unit test for checking if a function that scrubs invalid UTF8 strings in BSONObj. In my original implementation, I would reassign a StringData() object to a std::string type. This would enable the unit test to pass locally, but to fail on Evergreen. This was frustrating to debug because this only failed on Evergreen and would have been nice to be caught earlier.

            Assignee:
            Unassigned Unassigned
            Reporter:
            stephanie.eristoff@mongodb.com Stephanie Eristoff
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: