Forward declare actors with ACTOR keyword. #1148

There are several more occurrences of this, but they're in .h files that
now need to be .actor.h files. This gets the easy ones out of the way.
This commit is contained in:
Andrew Noyes 2019-02-12 15:38:15 -08:00 committed by Alex Miller
parent 067a445e06
commit 65136a2ecd
2 changed files with 6 additions and 4 deletions

View File

@ -1052,7 +1052,8 @@ Future<Standalone<RangeResultRef>> getRange(
bool const& reverse,
TransactionInfo const& info);
Future<Optional<Value>> getValue( Future<Version> const& version, Key const& key, Database const& cx, TransactionInfo const& info, Reference<TransactionLogInfo> const& trLogInfo ) ;
ACTOR Future<Optional<Value>> getValue(Future<Version> version, Key key, Database cx, TransactionInfo info,
Reference<TransactionLogInfo> trLogInfo);
ACTOR Future<Optional<StorageServerInterface>> fetchServerInterface( Database cx, TransactionInfo info, UID id, Future<Version> ver = latestVersion ) {
Optional<Value> val = wait( getValue(ver, serverListKeyFor(id), cx, info, Reference<TransactionLogInfo>()) );
@ -1353,7 +1354,9 @@ ACTOR Future<Version> waitForCommittedVersion( Database cx, Version version ) {
}
}
Future<Void> readVersionBatcher( DatabaseContext* const& cx, FutureStream< std::pair< Promise<GetReadVersionReply>, Optional<UID> > > const& versionStream, uint32_t const& flags );
ACTOR Future<Void> readVersionBatcher(
DatabaseContext* cx, FutureStream<std::pair<Promise<GetReadVersionReply>, Optional<UID>>> versionStream,
uint32_t flags);
ACTOR Future< Void > watchValue( Future<Version> version, Key key, Optional<Value> value, Database cx, int readVersionFlags, TransactionInfo info )
{

View File

@ -396,8 +396,7 @@ ACTOR Future<Message> getMessage(Transaction *tr, Feed feed, MessageId id) {
return m;
}
Future<std::vector<Message>> _listInboxMessages(Database const& cx,
uint64_t const& inbox, int const& count, uint64_t const& cursor);
ACTOR Future<std::vector<Message>> _listInboxMessages(Database cx, uint64_t inbox, int count, uint64_t cursor);
// inboxes with MANY fast feeds may be punished by the following checks
// SOMEDAY: add a check on global lists (or on dispatching list)