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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.5.0
    • 2.2.0
    • Internal Code
    • None
    • Fully Compatible
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: