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

Method handleGetResync

rest/api.go:353–361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351}
352
353func (h *handler) handleGetResync() error {
354 status, err := h.db.ResyncManager.GetStatus(h.ctx())
355 if err != nil {
356 return err
357 }
358 h.writeRawJSON(status)
359 base.Audit(h.ctx(), base.AuditIDDatabaseResyncStatus, nil)
360 return nil
361}
362
363// ResyncPostReqBody represents Resync POST body to run resync for custom collections
364type ResyncPostReqBody struct {

Callers

nothing calls this directly

Calls 4

ctxMethod · 0.95
writeRawJSONMethod · 0.95
AuditFunction · 0.92
GetStatusMethod · 0.45

Tested by

no test coverage detected