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

About reusing deleteList strategy in MongoDB

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.6.12
    • Component/s: Internal Code, MMAPv1
    • None

      I have a question about allocing space for new record from deleteList arrays-list in MongoDB. I looked at the __stdAlloc function code in namespace_details.h and namespace_details.cpp. Mongodb's alloc strategy is to try five times for bestmatch DeletedRecord. I don't understand why we don't sort DeletedRecord-size for list. Sorted list is quickly for allocing space for record. Why don't mongodb sort deletedRecord of deleteList backward list by size?
      Notes:
      1.namespace_details.h,namespace_details.cpp;
      2.MongoDB source code version is 2.6.12.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tiredliu tiredliu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: