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

About reusing deleteList strategy in MongoDB

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: