Take a DB offline
()
| 259 | |
| 260 | // Take a DB offline |
| 261 | func (h *handler) handleDbOffline() error { |
| 262 | h.assertAdminOnly() |
| 263 | if err := h.db.TakeDbOffline(base.NewNonCancelCtx(), "ADMIN Request"); err != nil { |
| 264 | base.InfofCtx(h.ctx(), base.KeyCRUD, "Unable to take Database : %v, offline", base.MD(h.db.Name)) |
| 265 | return err |
| 266 | } |
| 267 | base.Audit(h.ctx(), base.AuditIDDatabaseOffline, nil) |
| 268 | return nil |
| 269 | } |
| 270 | |
| 271 | // handleIndexInit allows async index initialization status to be viewed |
| 272 | func (h *handler) handleGetIndexInit() error { |
nothing calls this directly
no test coverage detected