diff options
author | Benety Goh <benety@mongodb.com> | 2019-10-22 18:30:41 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-22 18:30:41 +0000 |
commit | 17f049d0c9bf8aa5993584a2b5b107fc8e08d43f (patch) | |
tree | e68e3ae6efdab837270a020724223487f8a6deae /src/mongo/db | |
parent | 8827d2aa820f5331e2f03bffd46c93986f14dce7 (diff) | |
download | mongo-17f049d0c9bf8aa5993584a2b5b107fc8e08d43f.tar.gz |
SERVER-44121 add IndexBuildInterceptor::DrainYieldPolicy
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/index/index_build_interceptor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/index/index_build_interceptor.h b/src/mongo/db/index/index_build_interceptor.h index 01c9ba40326..c900a02ba34 100644 --- a/src/mongo/db/index/index_build_interceptor.h +++ b/src/mongo/db/index/index_build_interceptor.h @@ -46,6 +46,11 @@ class OperationContext; class IndexBuildInterceptor { public: + /** + * Determines if we will yield locks while draining the side tables. + */ + enum class DrainYieldPolicy { kNoYield, kYield }; + enum class Op { kInsert, kDelete }; static bool typeCanFastpathMultikeyUpdates(IndexType type); |