1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 02:04:27 +00:00
zeripath 30181d459d Wrap the code indexer (#9476)
* Wrap the code indexer

In order to prevent a data race in the code indexer it must be wrapped
with a holder otherwise it is possible to Search/Index on an
incompletely initialised indexer, and search will fail with a nil
pointer until the repository indexer is initialised.

Further a completely initialised repository indexer should not be closed
until Termination otherwise actions in Hammer/Shutdown phases could
block or be lost.

Finally, there is a complex dance of shutdown etiquette should the index
initialisation fail. This PR restores that.

* Always return err if closed whilst waiting

Co-authored-by: techknowlogick <matti@mdranta.net>
2019-12-24 15:26:34 +08:00
..
2019-08-23 12:40:29 -04:00
2019-08-23 12:40:29 -04:00
2019-06-12 15:41:28 -04:00
2019-12-24 15:26:34 +08:00
2019-12-07 23:36:47 -05:00
2018-11-04 22:20:00 -05:00
2019-08-23 12:40:29 -04:00
2019-06-12 15:41:28 -04:00
2019-08-23 12:40:29 -04:00
2019-11-22 08:03:45 +00:00
2019-03-08 11:42:50 -05:00
2019-08-23 12:40:29 -04:00
2019-08-23 12:40:29 -04:00
2019-08-17 13:10:17 +03:00
2019-06-12 15:41:28 -04:00