Update the returned future when local client is disabled
This commit is contained in:
parent
c8538ef940
commit
6e619e9157
|
@ -816,10 +816,8 @@ ThreadFuture<int64_t> MultiVersionDatabase::rebootWorker(const StringRef& addres
|
||||||
}
|
}
|
||||||
|
|
||||||
ThreadFuture<Void> MultiVersionDatabase::forceRecoveryWithDataLoss(const StringRef &dcid) {
|
ThreadFuture<Void> MultiVersionDatabase::forceRecoveryWithDataLoss(const StringRef &dcid) {
|
||||||
if (dbState->db) {
|
auto f = dbState->db ? dbState->db->forceRecoveryWithDataLoss(dcid) : ThreadFuture<Void>(Never());
|
||||||
return dbState->db->forceRecoveryWithDataLoss(dcid);
|
return abortableFuture(f, dbState->dbVar->get().onChange);
|
||||||
}
|
|
||||||
return Void();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiVersionDatabase::Connector::connect() {
|
void MultiVersionDatabase::Connector::connect() {
|
||||||
|
|
Loading…
Reference in New Issue