diff options
author | Benety Goh <benety@mongodb.com> | 2019-02-01 13:23:54 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2019-02-01 13:23:54 -0500 |
commit | 8387824b3ac937b0489fcb94c590cc663b47348c (patch) | |
tree | e5cf5b30d4f48d46e183e282c8c92fe84f3997bf /src/mongo/db/operation_context.h | |
parent | 9be581f05602f7956ea8f501cbc774a6172c40f9 (diff) | |
download | mongo-8387824b3ac937b0489fcb94c590cc663b47348c.tar.gz |
SERVER-37643 IndexBuildsCoordinatorMongod task inherits CurOp and OperationContext info from caller thread
This supports copying an OperationContext's deadline and timeout error across
thread boundaries.
This also adds OperationContext::getTimeoutError().
Diffstat (limited to 'src/mongo/db/operation_context.h')
-rw-r--r-- | src/mongo/db/operation_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/operation_context.h b/src/mongo/db/operation_context.h index e1ea8e6d61d..389797c2e1c 100644 --- a/src/mongo/db/operation_context.h +++ b/src/mongo/db/operation_context.h @@ -312,6 +312,11 @@ public: } /** + * Returns the error code used when this operation's time limit is reached. + */ + ErrorCodes::Error getTimeoutError() const; + + /** * Returns the number of milliseconds remaining for this operation's time limit or * Milliseconds::max() if the operation has no time limit. */ |