]> source.dussan.org Git - gitea.git/commit
Fix `Init` of db indexer (#25470)
authorJason Song <i@wolfogre.com>
Fri, 23 Jun 2023 14:39:52 +0000 (22:39 +0800)
committerGitHub <noreply@github.com>
Fri, 23 Jun 2023 14:39:52 +0000 (14:39 +0000)
commit3c7f5ed7b5bff347198cbb26492e6354ea42733b
treebc8bec6875162291f161fd1b49205bfbce54f09a
parente441a5d75143031661a3ffa26d4d6c8680e7f73f
Fix `Init` of db indexer (#25470)

Fix regression of #25174.

The `Init` of the db indexer should return true to indicate that the
index was opened/existed, or the indexer will try to populate the index
(not really populate, just fill the queue, `Index` method of the db
indexer is a dummy).
modules/indexer/internal/db/indexer.go