MCPcopy Create free account
hub / github.com/distributedio/titan / Debug

Function Debug

command/server.go:213–220  ·  view source on GitHub ↗

Debug the titan server

(ctx *Context, txn *db.Transaction)

Source from the content-addressed store, hash-verified

211
212// Debug the titan server
213func Debug(ctx *Context, txn *db.Transaction) (OnCommit, error) {
214 switch strings.ToLower(ctx.Args[0]) {
215 case "object":
216 return debugObject(ctx, txn)
217 default:
218 return nil, errors.New("ERR not supported")
219 }
220}
221func debugObject(ctx *Context, txn *db.Transaction) (OnCommit, error) {
222 key := []byte(ctx.Args[1])
223 obj, err := txn.Object(key)

Callers

nothing calls this directly

Calls 1

debugObjectFunction · 0.85

Tested by

no test coverage detected