| 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()) { |
no test coverage detected