summaryrefslogtreecommitdiff
path: root/client/dbclient.cpp
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2010-04-22 10:31:16 -0400
committerDwight <dmerriman@gmail.com>2010-04-22 10:31:16 -0400
commit67e3503b9d10a2e3e1fbea48baba6d4846019134 (patch)
tree510dc1a0f144c09dc8b28e773063b4a4e6dc9cbb /client/dbclient.cpp
parent835c65adc298dde1b311d6346f914f9c60e4a71e (diff)
downloadmongo-67e3503b9d10a2e3e1fbea48baba6d4846019134.tar.gz
bson cleaning
Diffstat (limited to 'client/dbclient.cpp')
-rw-r--r--client/dbclient.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/dbclient.cpp b/client/dbclient.cpp
index 0656a43a96d..a155dbcd942 100644
--- a/client/dbclient.cpp
+++ b/client/dbclient.cpp
@@ -695,6 +695,12 @@ namespace mongo {
/* -- DBClientCursor ---------------------------------------------- */
+#ifdef _DEBUG
+#define CHECK_OBJECT( o , msg ) massert( 10337 , (string)"object not valid" + (msg) , (o).isValid() )
+#else
+#define CHECK_OBJECT( o , msg )
+#endif
+
void assembleRequest( const string &ns, BSONObj query, int nToReturn, int nToSkip, const BSONObj *fieldsToReturn, int queryOptions, Message &toSend ) {
CHECK_OBJECT( query , "assembleRequest query" );
// see query.h for the protocol we are using here.