MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / handleGetIndexInit

Method handleGetIndexInit

rest/admin_api.go:272–279  ·  view source on GitHub ↗

handleIndexInit allows async index initialization status to be viewed

()

Source from the content-addressed store, hash-verified

270
271// handleIndexInit allows async index initialization status to be viewed
272func (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
281type PostIndexInitRequest struct {
282 NumPartitions *uint32 `json:"num_partitions"`

Callers

nothing calls this directly

Calls 3

ctxMethod · 0.95
writeRawJSONMethod · 0.95
GetStatusMethod · 0.45

Tested by

no test coverage detected