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

Apparent typo or cut-and-paste error in src/mongo/db/db.h

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.0
    • Affects Version/s: 2.2.0
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • ALL

      In src/mongo/db/db.h, line 39 in today's master branch seems misplaced:

                  if( Lock::nested() ) {
                      Lock::nested();
                      massert(10298 , "can't temprelease nested lock", false);
                  }
      

      The second call to Lock::nested() doesn't do anything; it returns 'true' if the recursion count is greater than 1, but we already knew that from the line above and no one is looking at the result anyway.

            Assignee:
            tad Tad Marshall
            Reporter:
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: