summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_chunk_cloner_source.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2017-09-26 17:45:15 -0400
committerRandolph Tan <randolph@10gen.com>2017-10-04 16:43:58 -0400
commit0ab7000e04e16813c1e1e3f131f02de102ddffba (patch)
tree07c771aa1229bc85755f952dcc9a157a8d4e2dd2 /src/mongo/db/s/migration_chunk_cloner_source.h
parentd6267ee66b997af73fcfb095f03f655bb61c06dc (diff)
downloadmongo-0ab7000e04e16813c1e1e3f131f02de102ddffba.tar.gz
SERVER-31030 Use full OpTime instead of just Timestamps to refer to oplog entries
Diffstat (limited to 'src/mongo/db/s/migration_chunk_cloner_source.h')
-rw-r--r--src/mongo/db/s/migration_chunk_cloner_source.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/mongo/db/s/migration_chunk_cloner_source.h b/src/mongo/db/s/migration_chunk_cloner_source.h
index 9d9a1407f1d..ff3d31132fa 100644
--- a/src/mongo/db/s/migration_chunk_cloner_source.h
+++ b/src/mongo/db/s/migration_chunk_cloner_source.h
@@ -38,6 +38,10 @@ class OperationContext;
class Status;
class Timestamp;
+namespace repl {
+class OpTime;
+} // namespace repl
+
/**
* This class is responsible for producing chunk documents to be moved from donor to a recipient
* shard and its methods represent cloning stages. Its lifetime is owned and controlled by a single
@@ -121,7 +125,7 @@ public:
*/
virtual void onInsertOp(OperationContext* opCtx,
const BSONObj& insertedDoc,
- const Timestamp& oplogTs) = 0;
+ const repl::OpTime& opTime) = 0;
/**
* Notifies this cloner that an update happened to the collection, which it owns. It is up to
@@ -132,8 +136,8 @@ public:
*/
virtual void onUpdateOp(OperationContext* opCtx,
const BSONObj& updatedDoc,
- const Timestamp& oplogTs,
- const Timestamp& prePostImageTs) = 0;
+ const repl::OpTime& opTime,
+ const repl::OpTime& prePostImageOpTime) = 0;
/**
* Notifies this cloner that a delede happened to the collection, which it owns. It is up to the
@@ -144,8 +148,8 @@ public:
*/
virtual void onDeleteOp(OperationContext* opCtx,
const BSONObj& deletedDocId,
- const Timestamp& oplogTs,
- const Timestamp& preImageTs) = 0;
+ const repl::OpTime& opTime,
+ const repl::OpTime& preImageOpTime) = 0;
protected:
MigrationChunkClonerSource();