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

Implement SetNode::apply()

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.7
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2017-05-08

      Add the following method to the interface UpdateLeafNode:

      virtual Status apply(mutablebson::Element element, 
      FieldRef* pathToCreate, 
      FieldRef* pathTaken, 
      StringData matchedField, 
      bool fromReplication,
      const UpdateIndexData* indexData,
      LogBuilder* logBuilder, 
      bool* indexesAffected, 
      bool* noop) = 0;
      

      Implement SetNode::apply(). This should set element with its stored value, creating pathToCreate as needed, and erroring if there is a blocking element and the update is not from replication (if there is a blocking element and the update is from replication, we can do nothing and return noop=true). It should fill out indexesAffected and noop, and record itself in logBuilder, if provided.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: