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

Method recoverIndexes

src/index.ts:600–602  ·  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

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

Callers 3

awaitIndexRecoveryMethod · 0.80
activateFunction · 0.80
retryInitializeSyncMethod · 0.80

Calls 1

Tested by

no test coverage detected