summaryrefslogtreecommitdiffstats
path: root/modules/indexer
diff options
context:
space:
mode:
Diffstat (limited to 'modules/indexer')
-rw-r--r--modules/indexer/code/indexer.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/modules/indexer/code/indexer.go b/modules/indexer/code/indexer.go
index 80bde7614f..019773fe51 100644
--- a/modules/indexer/code/indexer.go
+++ b/modules/indexer/code/indexer.go
@@ -122,21 +122,6 @@ func Init() {
indexer := *globalIndexer.Load()
for _, indexerData := range items {
log.Trace("IndexerData Process Repo: %d", indexerData.RepoID)
-
- // FIXME: it seems there is a bug in `CatFileBatch` or `nio.Pipe`, which will cause the process to hang forever in rare cases
- /*
- sync.(*Cond).Wait(cond.go:70)
- github.com/djherbis/nio/v3.(*PipeReader).Read(sync.go:106)
- bufio.(*Reader).fill(bufio.go:106)
- bufio.(*Reader).ReadSlice(bufio.go:372)
- bufio.(*Reader).collectFragments(bufio.go:447)
- bufio.(*Reader).ReadString(bufio.go:494)
- code.gitea.io/gitea/modules/git.ReadBatchLine(batch_reader.go:149)
- code.gitea.io/gitea/modules/indexer/code.(*BleveIndexer).addUpdate(bleve.go:214)
- code.gitea.io/gitea/modules/indexer/code.(*BleveIndexer).Index(bleve.go:296)
- code.gitea.io/gitea/modules/indexer/code.(*wrappedIndexer).Index(wrapped.go:74)
- code.gitea.io/gitea/modules/indexer/code.index(indexer.go:105)
- */
if err := index(ctx, indexer, indexerData.RepoID); err != nil {
unhandled = append(unhandled, indexerData)
if !setting.IsInTesting {