File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -552,16 +552,15 @@ export class RepoManager implements IRepoManager {
552
552
return ;
553
553
}
554
554
555
+ const files = readdirSync ( this . ctx . indexPath ) ;
555
556
const reposToReindex : number [ ] = [ ] ;
556
-
557
557
for ( const repo of indexedRepos ) {
558
558
const shardPrefix = getShardPrefix ( repo . orgId , repo . id ) ;
559
559
560
560
// TODO: this doesn't take into account if a repo has multiple shards and only some of them are missing. To support that, this logic
561
561
// would need to know how many total shards are expected for this repo
562
562
let hasShards = false ;
563
563
try {
564
- const files = readdirSync ( this . ctx . indexPath ) ;
565
564
hasShards = files . some ( file => file . startsWith ( shardPrefix ) ) ;
566
565
} catch ( error ) {
567
566
logger . error ( `Failed to read index directory ${ this . ctx . indexPath } : ${ error } ` ) ;
You can’t perform that action at this time.
0 commit comments