MCPcopy Create free account
hub / github.com/apple/foundationdb / isRunnable

Method isRunnable

fdbclient/FileBackupAgent.actor.cpp:221–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 FileSetT fileSet() { return configSpace.pack(LiteralStringRef(__FUNCTION__)); }
220
221 Future<bool> isRunnable(Reference<ReadYourWritesTransaction> tr) {
222 return map(stateEnum().getD(tr), [](ERestoreState s) -> bool {
223 return s != ERestoreState::ABORTED && s != ERestoreState::COMPLETED && s != ERestoreState::UNITIALIZED;
224 });
225 }
226
227 Future<Void> logError(Database cx, Error e, std::string const& details, void* taskInstance = nullptr) {
228 if (!uid.isValid()) {

Calls 2

mapFunction · 0.85
getDMethod · 0.45

Tested by

no test coverage detected