summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/minvalid.h
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2015-05-19 15:10:31 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2015-05-26 17:23:02 -0400
commit11237ffbb01dcfc810dccae6029d569afa4473db (patch)
tree9c4ba5fbf2ee32bce958d426b6627b7a0fb102fb /src/mongo/db/repl/minvalid.h
parent084e41d202d6757504d2cc338f4c0fe0cfe8babb (diff)
downloadmongo-11237ffbb01dcfc810dccae6029d569afa4473db.tar.gz
SERVER-18216 Add term to oplog.
Diffstat (limited to 'src/mongo/db/repl/minvalid.h')
-rw-r--r--src/mongo/db/repl/minvalid.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/minvalid.h b/src/mongo/db/repl/minvalid.h
index 853c96b6c27..2118809c424 100644
--- a/src/mongo/db/repl/minvalid.h
+++ b/src/mongo/db/repl/minvalid.h
@@ -31,9 +31,9 @@
namespace mongo {
class BSONObj;
class OperationContext;
- class Timestamp;
namespace repl {
+ class OpTime;
/**
* Helper functions for maintaining local.replset.minvalid collection contents.
@@ -61,7 +61,7 @@ namespace repl {
* consider the dataset consistent. Do not allow client reads if our last applied operation is
* before the minValid time.
*/
- void setMinValid(OperationContext* ctx, Timestamp ts);
- Timestamp getMinValid(OperationContext* txn);
+ void setMinValid(OperationContext* ctx, const OpTime& opTime);
+ OpTime getMinValid(OperationContext* txn);
}
}