| 94 | } |
| 95 | |
| 96 | ThreadFuture<Void> ThreadSafeDatabase::forceRecoveryWithDataLoss(const StringRef& dcid) { |
| 97 | DatabaseContext* db = this->db; |
| 98 | Key dcidKey = dcid; |
| 99 | return onMainThread([db, dcidKey]() -> Future<Void> { |
| 100 | db->checkDeferredError(); |
| 101 | return db->forceRecoveryWithDataLoss(dcidKey); |
| 102 | }); |
| 103 | } |
| 104 | |
| 105 | ThreadFuture<Void> ThreadSafeDatabase::createSnapshot(const StringRef& uid, const StringRef& snapshot_command) { |
| 106 | DatabaseContext* db = this->db; |
nothing calls this directly
no test coverage detected