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

Method handlePostUpgrade

rest/api.go:460–477  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

458}
459
460func (h *handler) handlePostUpgrade() error {
461
462 preview := h.getBoolQuery("preview")
463
464 postUpgradeResults, err := h.server.PostUpgrade(h.ctx(), preview)
465 if err != nil {
466 return err
467 }
468
469 result := &PostUpgradeResponse{
470 Result: postUpgradeResults,
471 Preview: preview,
472 }
473
474 h.writeJSON(result)
475 base.Audit(h.ctx(), base.AuditIDPostUpgrade, base.AuditFields{base.AuditFieldPostUpgradePreview: preview})
476 return nil
477}
478
479func (h *handler) instanceStartTimeMicro() int64 {
480 return h.db.StartTime.UnixMicro()

Callers

nothing calls this directly

Calls 5

getBoolQueryMethod · 0.95
ctxMethod · 0.95
writeJSONMethod · 0.95
AuditFunction · 0.92
PostUpgradeMethod · 0.80

Tested by

no test coverage detected