diff options
author | Yunhe (John) Wang <yunhe.wang@mongodb.com> | 2015-10-06 13:41:59 -0400 |
---|---|---|
committer | Yunhe (John) Wang <yunhe.wang@mongodb.com> | 2015-10-08 13:31:20 -0400 |
commit | aaf2969861e882624132c5d6b6141acfafc15aa7 (patch) | |
tree | f411c1634fdd7af47dde1a9cdb0bfe60335e571d /src/mongo/s/query/cluster_client_cursor.h | |
parent | 9b984cdc4b58be9002c692cd9ba8af2a3731b748 (diff) | |
download | mongo-aaf2969861e882624132c5d6b6141acfafc15aa7.tar.gz |
SERVER-20720 mongos now returns dead tailable cursor over an empty capped collection
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor.h')
-rw-r--r-- | src/mongo/s/query/cluster_client_cursor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor.h b/src/mongo/s/query/cluster_client_cursor.h index 4375c2a82ae..d0e6d8cf811 100644 --- a/src/mongo/s/query/cluster_client_cursor.h +++ b/src/mongo/s/query/cluster_client_cursor.h @@ -90,6 +90,11 @@ public: * 'obj' must be owned BSON. */ virtual void queueResult(const BSONObj& obj) = 0; + + /** + * Returns whether or not all the remote cursors underlying this cursor have been exhausted. + */ + virtual bool remotesExhausted() = 0; }; } // namespace mongo |