[SERVER-1312] The fsync/getlasterror-w/fsync result fields are named inconsistently Created: 28/Jun/10  Updated: 23/Feb/17  Resolved: 23/Feb/17

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 1.5.3
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Major Change
Participants:

 Description   

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?


Generated at Thu Feb 08 02:56:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.