summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r--src/mongo/db/repl/storage_interface_impl.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp
index 73a14ce6330..a58f85964b4 100644
--- a/src/mongo/db/repl/storage_interface_impl.cpp
+++ b/src/mongo/db/repl/storage_interface_impl.cpp
@@ -39,16 +39,16 @@
namespace mongo {
namespace repl {
- StorageInterfaceImpl::StorageInterfaceImpl() : StorageInterface() {}
- StorageInterfaceImpl::~StorageInterfaceImpl() { }
-
- OperationContext* StorageInterfaceImpl::createOperationContext() {
- if (!ClientBasic::getCurrent()) {
- Client::initThreadIfNotAlready();
- AuthorizationSession::get(*ClientBasic::getCurrent())->grantInternalAuthorization();
- }
- return new OperationContextImpl();
+StorageInterfaceImpl::StorageInterfaceImpl() : StorageInterface() {}
+StorageInterfaceImpl::~StorageInterfaceImpl() {}
+
+OperationContext* StorageInterfaceImpl::createOperationContext() {
+ if (!ClientBasic::getCurrent()) {
+ Client::initThreadIfNotAlready();
+ AuthorizationSession::get(*ClientBasic::getCurrent())->grantInternalAuthorization();
}
+ return new OperationContextImpl();
+}
} // namespace repl
-} // namespace mongo
+} // namespace mongo