diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-08-21 19:16:47 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-08-25 17:14:59 -0400 |
commit | 4e2b90f5d94b2b7194a67f6e7ca766f42c96eddd (patch) | |
tree | 9d649192a9f8064104f4fe7e0ac15e59bcbf567d /src/mongo/db/operation_context.h | |
parent | 052175eb9e0b793de19575fea37a7fdd95126a50 (diff) | |
download | mongo-4e2b90f5d94b2b7194a67f6e7ca766f42c96eddd.tar.gz |
SERVER-14371 Implement killOp support to interrupt threads blocked in awaitReplication
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r-- | src/mongo/db/operation_context.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/operation_context.h b/src/mongo/db/operation_context.h index c452f3d777b..e425b6941ab 100644 --- a/src/mongo/db/operation_context.h +++ b/src/mongo/db/operation_context.h @@ -114,6 +114,13 @@ namespace mongo { virtual CurOp* getCurOp() const = 0; /** + * Returns the operation ID associated with this operation. + * WARNING: Due to SERVER-14995, this OpID is not guaranteed to stay the same for the + * lifetime of this OperationContext. + */ + virtual unsigned int getOpID() const = 0; + + /** * @return true if this instance is primary for this namespace */ virtual bool isPrimaryFor( const StringData& ns ) = 0; |