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

convert HashTable::iterAll() to use boost::bind instead of function callback

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7.3
    • Affects Version/s: None
    • Component/s: Storage

      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.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            guanqun Guanqun Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: