summaryrefslogtreecommitdiff
path: root/src/mongo/client/fetcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/fetcher.h')
-rw-r--r--src/mongo/client/fetcher.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/client/fetcher.h b/src/mongo/client/fetcher.h
index 99748941ca2..d258bf50eaa 100644
--- a/src/mongo/client/fetcher.h
+++ b/src/mongo/client/fetcher.h
@@ -63,7 +63,6 @@ public:
CursorId cursorId = 0;
NamespaceString nss;
Documents documents;
- // TODO: fill in with replication metadata.
struct OtherFields {
BSONObj metadata;
} otherFields;
@@ -118,7 +117,8 @@ public:
const HostAndPort& source,
const std::string& dbname,
const BSONObj& cmdObj,
- const CallbackFn& work);
+ const CallbackFn& work,
+ const BSONObj& metadata = rpc::makeEmptyMetadata());
virtual ~Fetcher();
@@ -180,6 +180,7 @@ private:
HostAndPort _source;
std::string _dbname;
BSONObj _cmdObj;
+ BSONObj _metadata;
CallbackFn _work;
// Protects member data of this Fetcher.