-
Type: Question
-
Resolution: Done
-
Priority: 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.