101 /*
|
102 * TODO: These two following assertions should be runtime catchable since
|
103 * they rely on system configuration that could be dynamic.
|
104 * Change to set internal error and return a valid cursor that
|
105 * fails on first _next() call.
|
106 */
|
107
|
108 /* we can't have exhaust queries with limits */
|
109 BSON_ASSERT (!((flags & MONGOC_QUERY_EXHAUST) && limit));
|
110
|
111 /* we can't have exhaust queries with sharded clusters */
|
112 BSON_ASSERT (!((flags & MONGOC_QUERY_EXHAUST) && client->cluster.isdbgrid));
|