diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-09-08 21:20:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 13:20:38 +0000 |
commit | 4807f7be22c2cf5ceffab241cec24058f1628125 (patch) | |
tree | 7088de3e6f05124a5b767b293ce3e485a424afae /modules/indexer | |
parent | bafe1334c6e46c0a0398c645da97b53f42996ab8 (diff) | |
download | gitea-4807f7be22c2cf5ceffab241cec24058f1628125.tar.gz gitea-4807f7be22c2cf5ceffab241cec24058f1628125.zip |
Clarify the git command Stdin hanging problem (#26967)
Diffstat (limited to 'modules/indexer')
-rw-r--r-- | modules/indexer/code/indexer.go | 15 |
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 { |