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

The fsync/getlasterror-w/fsync result fields are named inconsistently

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 1.5.3
    • Component/s: Admin
    • None
    • Major Change
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      The fsync command and the getlasterror (with fsync option) command return different fields representing the sync'd file count. These should be made consistent.

      > db.runCommand(

      {getlasterror:1, fsync:true}

      )

      { "err" : null, "n" : 0, "fsyncFiles" : 1, "ok" : true }

      > db.runCommand(

      {fsync:true}

      )

      { "numFiles" : 2, "ok" : true }

      Also, the fsync command is admin only, while GLE isn't (but should be with fsync opt?). Is this a possible (DOS) problem?

            Assignee:
            Unassigned Unassigned
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: