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

Remove or clarify variables in BucketUnpacker and BucketSpec

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-101271 solved a bug that was caused by misunderstanding the fieldSet variable in bucket unpacker and bucket spec. We have many variables in these two classes that define the unpacker behavior, but managing and understanding all of these variables is confusing and leads to bug. For example we use a combination of _includeMetaField and unpacker behavior to determine if we removed the metaField from the original field set to decide if we internalized a $project, which is not obvious from the code. 

      This ticket should clarify behavior of variables in these two classes and potentially see if some can be removed to simplify the code.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: