![]() |
Storage Engine API
|
#include <exception>
#include "mongo/base/string_data.h"
#include "mongo/db/curop.h"
#include "mongo/util/assert_util.h"
Go to the source code of this file.
Classes | |
class | mongo::WriteConflictException |
This is thrown if during a write, two or more operations conflict with each other. More... | |
Namespaces | |
mongo | |
Copyright (C) 2014 MongoDB Inc. | |
Functions | |
template<typename F > | |
auto | mongo::writeConflictRetry (OperationContext *opCtx, StringData opStr, StringData ns, F &&f) |
Runs the argument function f as many times as needed for f to complete or throw an exception other than WriteConflictException. More... | |