fix getLastErrorDetailed definitions to match

This commit is contained in:
Eliot Horowitz
2011-10-10 03:26:10 -04:00
parent f727f3b6fe
commit d6f97c514b
4 changed files with 8 additions and 7 deletions

View File

@@ -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;