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

Method rebootWorker

fdbclient/ThreadSafeTransaction.cpp:87–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87ThreadFuture<int64_t> ThreadSafeDatabase::rebootWorker(const StringRef& address, bool check, int duration) {
88 DatabaseContext* db = this->db;
89 Key addressKey = address;
90 return onMainThread([db, addressKey, check, duration]() -> Future<int64_t> {
91 db->checkDeferredError();
92 return db->rebootWorker(addressKey, check, duration);
93 });
94}
95
96ThreadFuture<Void> ThreadSafeDatabase::forceRecoveryWithDataLoss(const StringRef& dcid) {
97 DatabaseContext* db = this->db;

Callers

nothing calls this directly

Calls 2

onMainThreadFunction · 0.50
checkDeferredErrorMethod · 0.45

Tested by

no test coverage detected