summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_fetcher.h
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2020-06-24 11:15:43 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-22 14:26:31 +0000
commit803d63f2a918e2b002880992af229affcb08a176 (patch)
tree90a1dba812f186546143f4efad1da8c6f1a5a96e /src/mongo/db/repl/oplog_fetcher.h
parent86d94765b9030c9aa9adb3899277456e64bbd348 (diff)
downloadmongo-803d63f2a918e2b002880992af229affcb08a176.tar.gz
SERVER-48849 Add filtering to the OplogFetcher
Diffstat (limited to 'src/mongo/db/repl/oplog_fetcher.h')
-rw-r--r--src/mongo/db/repl/oplog_fetcher.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog_fetcher.h b/src/mongo/db/repl/oplog_fetcher.h
index 4c3a765a780..0ae2d472cc9 100644
--- a/src/mongo/db/repl/oplog_fetcher.h
+++ b/src/mongo/db/repl/oplog_fetcher.h
@@ -177,7 +177,10 @@ public:
EnqueueDocumentsFn enqueueDocumentsFn,
OnShutdownCallbackFn onShutdownCallbackFn,
const int batchSize,
- StartingPoint startingPoint = StartingPoint::kSkipFirstDoc);
+ StartingPoint startingPoint = StartingPoint::kSkipFirstDoc,
+ BSONObj filter = BSONObj(),
+ ReadConcernArgs readConcern = ReadConcernArgs(),
+ StringData name = "oplog fetcher"_sd);
virtual ~OplogFetcher();
@@ -431,6 +434,13 @@ private:
// Indicates if we want to skip the first document during oplog fetching or not.
StartingPoint _startingPoint;
+ // Predicate with additional filtering to be done on oplog entries.
+ BSONObj _queryFilter;
+
+ // Read concern to use for reading the oplog. Empty read concern means we use a default
+ // of "afterClusterTime: Timestamp(0,1)".
+ ReadConcernArgs _queryReadConcern;
+
// Handle to currently scheduled _runQuery task.
executor::TaskExecutor::CallbackHandle _runQueryHandle;