diff options
Diffstat (limited to 'db/lasterror.cpp')
-rw-r--r-- | db/lasterror.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/lasterror.cpp b/db/lasterror.cpp index 4643aa9..240c84b 100644 --- a/db/lasterror.cpp +++ b/db/lasterror.cpp @@ -70,8 +70,10 @@ namespace mongo { b.appendBool( "updatedExisting", updatedExisting == True ); if ( upsertedId.isSet() ) b.append( "upserted" , upsertedId ); - if ( writebackId.isSet() ) + if ( writebackId.isSet() ) { b.append( "writeback" , writebackId ); + b.append( "instanceIdent" , prettyHostName() ); // this can be any unique string + } b.appendNumber( "n", nObjects ); return ! msg.empty(); |