handleIndexInit allows async index initialization status to be viewed
()
| 270 | |
| 271 | // handleIndexInit allows async index initialization status to be viewed |
| 272 | func (h *handler) handleGetIndexInit() error { |
| 273 | b, err := h.db.AsyncIndexInitManager.GetStatus(h.ctx()) |
| 274 | if err != nil { |
| 275 | return err |
| 276 | } |
| 277 | h.writeRawJSON(b) |
| 278 | return nil |
| 279 | } |
| 280 | |
| 281 | type PostIndexInitRequest struct { |
| 282 | NumPartitions *uint32 `json:"num_partitions"` |
nothing calls this directly
no test coverage detected