Update comments
This commit is contained in:
parent
bf0d0598dc
commit
be796a62a0
|
@ -27,7 +27,6 @@
|
|||
#include "fdbclient/CommitTransaction.h"
|
||||
|
||||
#include "flow/Arena.h"
|
||||
#include "flow/FastRef.h"
|
||||
#include "flow/ThreadHelper.actor.h"
|
||||
#include "flow/genericactors.actor.h"
|
||||
#include "flow/actorcompiler.h" // This must be the last #include.
|
||||
|
|
|
@ -89,6 +89,7 @@ public:
|
|||
virtual void addref() = 0;
|
||||
virtual void delref() = 0;
|
||||
|
||||
// used in template functions as returned Future type
|
||||
template<class Type> using FutureT = ThreadFuture<Type>;
|
||||
};
|
||||
|
||||
|
@ -118,6 +119,7 @@ public:
|
|||
// Management API, create snapshot
|
||||
virtual ThreadFuture<Void> createSnapshot(const StringRef& uid, const StringRef& snapshot_command) = 0;
|
||||
|
||||
// used in templated functions as Transaction type that can be created
|
||||
using TransactionT = ITransaction;
|
||||
};
|
||||
|
||||
|
|
|
@ -76,8 +76,6 @@ struct NetworkOptions {
|
|||
NetworkOptions();
|
||||
};
|
||||
|
||||
class ReadYourWritesTransaction; // workaround cyclic dependency
|
||||
|
||||
class Database final : public ThreadSafeReferenceCounted<Database> {
|
||||
public:
|
||||
enum { API_VERSION_LATEST = -1 };
|
||||
|
@ -111,6 +109,7 @@ public:
|
|||
|
||||
const UniqueOrderedOptionList<FDBTransactionOptions>& getTransactionDefaults() const;
|
||||
|
||||
// used in template functions to create a transaction
|
||||
using TransactionT = ReadYourWritesTransaction;
|
||||
Reference<TransactionT> createTransaction();
|
||||
|
||||
|
@ -174,6 +173,7 @@ private:
|
|||
void clear();
|
||||
};
|
||||
|
||||
class ReadYourWritesTransaction; // workaround cyclic dependency
|
||||
struct TransactionInfo {
|
||||
Optional<UID> debugID;
|
||||
TaskPriority taskID;
|
||||
|
|
|
@ -175,6 +175,7 @@ public:
|
|||
void setSpecialKeySpaceErrorMsg(const std::string& msg) { specialKeySpaceErrorMsg = msg; }
|
||||
Transaction& getTransaction() { return tr; }
|
||||
|
||||
// used in template functions as returned Future type
|
||||
template<typename Type> using FutureT = Future<Type>;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue