summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.h
diff options
context:
space:
mode:
authorBen Shteinfeld <ben.shteinfeld@mongodb.com>2017-07-06 16:11:24 -0400
committerBen Shteinfeld <ben.shteinfeld@mongodb.com>2017-07-11 13:37:35 -0400
commitee08e773208ca4421c72913048915c20b75fac80 (patch)
treeb7f5144b941e01a0fd8ca2623da3833f81b2fe54 /src/mongo/db/service_context.h
parenteb43e76f419566c24624067edc6ae723ac57865f (diff)
downloadmongo-ee08e773208ca4421c72913048915c20b75fac80.tar.gz
SERVER-29720 Provide libmongodbcapi database wrapper for service context
Diffstat (limited to 'src/mongo/db/service_context.h')
-rw-r--r--src/mongo/db/service_context.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/service_context.h b/src/mongo/db/service_context.h
index 3cf830c3fe7..9b3d97f1210 100644
--- a/src/mongo/db/service_context.h
+++ b/src/mongo/db/service_context.h
@@ -525,6 +525,17 @@ bool hasGlobalServiceContext();
ServiceContext* getGlobalServiceContext();
/**
+ * Warning - This function is temporary. Do not introduce new uses of this API.
+ *
+ * Returns the singleton ServiceContext for this server process.
+ *
+ * Waits until there is a valid global ServiceContext.
+ *
+ * Caller does not own pointer.
+ */
+ServiceContext* waitAndGetGlobalServiceContext();
+
+/**
* Sets the global ServiceContext. If 'serviceContext' is NULL, un-sets and deletes
* the current global ServiceContext.
*