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

Only replace the top-level metaField with "meta" for time-series updates/deletes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.4, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v5.0
    • Execution Team 2021-08-23

      Currently, the translateQuery in timeseries_update_delete_util.cpp replaces any occurrences of the metaField with "meta." However, it really should only replace any occurrences of top-level fields with the literal "meta". For example, if the metaField is "tag," and we queried on the field { "a":{ "tag": 1 }}, our current translation logic would substitute "tag" with "meta", but this is incorrect and we should leave the query as { "a":

      { "tag": 1 }

       }.

            Assignee:
            kris.satya@mongodb.com Kris Satya (Inactive)
            Reporter:
            kris.satya@mongodb.com Kris Satya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: