diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-02-05 17:51:36 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-02-05 17:52:36 -0500 |
commit | 471fd7da06644d80c906e2ac69190216791ef450 (patch) | |
tree | 96110e3e49b7ec43fdb2b03bf89e1acac71b702a /db | |
parent | 2949494e2c245461f9a91b3e705aec966f0109ed (diff) | |
download | mongo-471fd7da06644d80c906e2ac69190216791ef450.tar.gz |
added option paral to call to specify server address where was sent if different
Diffstat (limited to 'db')
-rw-r--r-- | db/instance.cpp | 2 | ||||
-rw-r--r-- | db/instance.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/db/instance.cpp b/db/instance.cpp index 9e5d6ab5da2..65e422c5a40 100644 --- a/db/instance.cpp +++ b/db/instance.cpp @@ -644,7 +644,7 @@ namespace mongo { return false; } - bool DBDirectClient::call( Message &toSend, Message &response, bool assertOk ) { + bool DBDirectClient::call( Message &toSend, Message &response, bool assertOk , string * actualServer ) { if ( lastError._get() ) lastError.startRequest( toSend, lastError._get() ); DbResponse dbResponse; diff --git a/db/instance.h b/db/instance.h index 1c7e6105453..b9b1fe5921b 100644 --- a/db/instance.h +++ b/db/instance.h @@ -127,7 +127,7 @@ namespace mongo { virtual string getServerAddress() const { return "localhost"; // TODO: should this have the port? } - virtual bool call( Message &toSend, Message &response, bool assertOk=true ); + virtual bool call( Message &toSend, Message &response, bool assertOk=true , string * actualServer = 0 ); virtual void say( Message &toSend ); virtual void sayPiggyBack( Message &toSend ) { // don't need to piggy back when connected locally |