[SERVER-4042] convert HashTable::iterAll() to use boost::bind instead of function callback Created: 09/Oct/11  Updated: 03/Jul/14  Resolved: 25/Jun/14

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 2.7.3

Type: Improvement Priority: Minor - P4
Reporter: Guanqun Lu Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: namespace
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File pr109_rebase_f4766f8-2.diff     File pr109_rebase_f4766f8.diff    
Participants:

 Description   

as in util/hashtab.h:
// TODO: should probably use boost::bind for this, but didn't want to look at it

and in db/namespace.cpp:
// TODO: need to implement this
// need boost::bind or something to make this less ugly

And I took a little time to look at this piece of code and find it's easy to translate the function callback into using boost::bind.

Pull request here: https://github.com/mongodb/mongo/pull/109

Commit here: https://github.com/guanqun/mongo/commit/ff8246b38184a72464f2a1fb50d30da6a328e792

Please review and possibly merge it.



 Comments   
Comment by Githook User [ 25/Jun/14 ]

Author:

{u'username': u'guanqun', u'name': u'Lu Guanqun', u'email': u'guanqun.lu@gmail.com'}

Message: SERVER-4042 convert HashTable::iterAll to use stdx::bind instead of function callback

Signed-off-by: Benety Goh <benety@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/11ea31ab1ac1109af219f7a36fb21dcf7dbbe5da

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