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

Move planCacheEntryToBSON to corresponding PlanCacheEntry definitions

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently optimizer_base depends on //src/mongo/db:sbe_values.
      One of the dependencies is through explain.cpp which implements:

          static void planCacheEntryToBSON(const mongo::PlanCacheEntry& entry, BSONObjBuilder* out);
          static void planCacheEntryToBSON(const mongo::sbe::PlanCacheEntry& entry, BSONObjBuilder* out);
      

      The second planCacheEntryToBSON uses mongo::sbe::PlanCacheEntry.

      This ticket moves the implementation of these functions to their corresponding definitions of PlanCacheEntry either as separate methods or serialization functions for planCacheEntry. Once the move is complete, address the corresponding dependencies.

            Assignee:
            matt.olma@mongodb.com Matt Olma
            Reporter:
            matt.olma@mongodb.com Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: