summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2015-05-04 20:01:26 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2015-05-12 15:36:54 -0400
commit3341d6407fb8ba147303432027db0ed006a85c46 (patch)
treeb493ad301c7c6d25e6fcf523a45d130234455ae3 /src/mongo/db/clientcursor.h
parentb3b37ae5c708ae1876f189e6c685ab06026e86ee (diff)
downloadmongo-3341d6407fb8ba147303432027db0ed006a85c46.tar.gz
SERVER-18217 Change Timestamp to OpTime where appropriate.
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index 86d8bc0b7bb..a94700234d2 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -135,6 +135,8 @@ namespace mongo {
// Replication-related stuff. TODO: Document and clean.
//
+ // Used to report replication position only in master-slave,
+ // so we keep them as TimeStamp rather than OpTime.
void updateSlaveLocation(OperationContext* txn);
void slaveReadTill( const Timestamp& t ) { _slaveReadTill = t; }
/** Just for testing. */
@@ -249,7 +251,7 @@ namespace mongo {
// deletion after an interval of inactivity. Defaults to false.
bool _isNoTimeout;
- // TODO: document better.
+ // The replication position only used in master-slave.
Timestamp _slaveReadTill;
// How long has the cursor been idle?