diff options
author | Andy Schwerin <schwerin@10gen.com> | 2012-02-27 14:46:45 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2012-03-01 10:30:42 -0500 |
commit | 6288c5f13973717a2ec0168f4b28242c0c981bd3 (patch) | |
tree | 1dd6b3eee0ec0a85e84db70ca5e9b74ec32e6563 /src/mongo/client/syncclusterconnection.h | |
parent | eed4990236f4e9b5a997f7b4e115df0c25edee97 (diff) | |
download | mongo-6288c5f13973717a2ec0168f4b28242c0c981bd3.tar.gz |
Promote C++ batch query execution functions to DBClientBase.
There's no good reason I can think of why the batch-processing forms of query()
shouldn't be available to all implementations of DBClientBase, and simply
optimized for DBClientConnection when exhaust-mode is available on the
connection.
This change facilitates another optimization, coming soon, which is that
DBDirectClient's batch query form can scan all rows rather than issuing a find
query when the query parameters are appropriate. This allows for a clever
resolution of SERVER-4726, which is really about an unwanted log message.
Diffstat (limited to 'src/mongo/client/syncclusterconnection.h')
-rw-r--r-- | src/mongo/client/syncclusterconnection.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/client/syncclusterconnection.h b/src/mongo/client/syncclusterconnection.h index f5b22d525fd..5ef2b0a547b 100644 --- a/src/mongo/client/syncclusterconnection.h +++ b/src/mongo/client/syncclusterconnection.h @@ -40,6 +40,9 @@ namespace mongo { */ class SyncClusterConnection : public DBClientBase { public: + + using DBClientBase::query; + /** * @param commaSeparated should be 3 hosts comma separated */ |