fix getLastErrorDetailed definitions to match
This commit is contained in:
@@ -305,8 +305,6 @@ namespace mongo {
|
||||
b.append( "fsync", 1 );
|
||||
if ( j )
|
||||
b.append( "j", 1 );
|
||||
if ( wtimeout > 0 )
|
||||
b.append( "wtimeout", wtimeout );
|
||||
|
||||
// only affects request when greater than one node
|
||||
if ( w >= 1 )
|
||||
@@ -314,6 +312,9 @@ namespace mongo {
|
||||
else if ( w == -1 )
|
||||
b.append( "w", "majority" );
|
||||
|
||||
if ( wtimeout > 0 )
|
||||
b.append( "wtimeout", wtimeout );
|
||||
|
||||
runCommand("admin", b.obj(), info);
|
||||
|
||||
return info;
|
||||
|
||||
Reference in New Issue
Block a user