MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / recoverIndexes

Method recoverIndexes

src/index.ts:602–604  ·  view source on GitHub ↗

* Rebuild, on a worker thread, the secondary indexes an interrupted bulk * load dropped and `openSync({ deferIndexRecovery: true })` left (#1887). * Resolves at once when nothing is left, which is every open but the first * after such an interruption; rejects when the rebuild fails, and the

()

Source from the content-addressed store, hash-verified

600 * call tries again. Reads stay correct meanwhile, only slower.
601 */
602 recoverIndexes(): Promise<void> {
603 return this.db.recoverIndexesOffThread();
604 }
605
606 /** Whether {@link recoverIndexes} still has indexes to rebuild. */
607 hasPendingIndexRecovery(): boolean {

Callers 3

awaitIndexRecoveryMethod · 0.80
activateFunction · 0.80
retryInitializeSyncMethod · 0.80

Calls 1

Tested by

no test coverage detected