MCPcopy
hub / github.com/CodisLabs/codis / handleRemoveLock

Method handleRemoveLock

cmd/admin/admin.go:84–93  ·  view source on GitHub ↗
(d map[string]interface{})

Source from the content-addressed store, hash-verified

82}
83
84func (t *cmdAdmin) handleRemoveLock(d map[string]interface{}) {
85 store := t.newTopomStore(d)
86 defer store.Close()
87
88 log.Debugf("force remove-lock")
89 if err := store.Release(); err != nil {
90 log.PanicErrorf(err, "force remove-lock failed")
91 }
92 log.Debugf("force remove-lock OK")
93}
94
95func (t *cmdAdmin) handleConfigDump(d map[string]interface{}) {
96 switch {

Callers 1

MainMethod · 0.95

Calls 5

newTopomStoreMethod · 0.95
DebugfMethod · 0.80
PanicErrorfMethod · 0.80
CloseMethod · 0.65
ReleaseMethod · 0.45

Tested by

no test coverage detected