[SERVER-27219] About reusing deleteList strategy in MongoDB Created: 30/Nov/16  Updated: 26/Dec/16  Resolved: 26/Dec/16

Status: Closed
Project: Core Server
Component/s: Internal Code, MMAPv1
Affects Version/s: 2.6.12
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: tiredliu Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Participants:

 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.



 Comments   
Comment by Stennie Steneker (Inactive) [ 26/Dec/16 ]

Hi,

Apologies for the delay in responding to your question. MongoDB 2.6 reached end of life in October, 2016 and is no longer supported.

Also, please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related discussion, please post on the mongodb-user group or Stack Overflow with the mongodb tag. I noticed you have already cross-posted this question to both, so I have answered in the community forums.

Regards,
Stephen

Generated at Thu Feb 08 04:14:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.