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

repair should clear lock file

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.0
    • Affects Version/s: 1.6.0
    • Component/s: Storage
    • Labels:
      None
    • ALL

      Someone asked if repair can automatically clear the lock file. Do we want to implement that?

      aaron-staples-macbook-pro:mongo3 aaron$ ./mongod --repair
      Tue Aug 10 10:48:53 MongoDB starting : pid=61129 port=27017 dbpath=/data/db/ 64-bit
      Tue Aug 10 10:48:53 db version v1.6.0, pdfile version 4.5
      Tue Aug 10 10:48:53 git version: 2c7f164b653f0d703947572ede064aed41cc2185
      Tue Aug 10 10:48:53 sys info: Darwin aaron-staples-macbook-pro.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_42

                                • old lock file: /data/db/mongod.lock. probably means unclean shutdown
                                  recommend removing file and running --repair
                                  see: http://dochub.mongodb.org/core/repair for more information
                                  *************

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            aaron Aaron Staple
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: