MCPcopy Index your code
hub / github.com/bytebase/bytebase / minSortKey

Function minSortKey

backend/plugin/parser/pg/query_span_loader.go:505–516  ·  view source on GitHub ↗
(scc []*objectEntry)

Source from the content-addressed store, hash-verified

503}
504
505func minSortKey(scc []*objectEntry) string {
506 if len(scc) == 0 {
507 return ""
508 }
509 best := scc[0].sortKey()
510 for _, o := range scc[1:] {
511 if k := o.sortKey(); k < best {
512 best = k
513 }
514 }
515 return best
516}
517
518// installOne attempts a real install; on failure installs a pseudo at the
519// same slot. All outcomes are recorded in l.degraded / l.trulyBroken; this

Callers 1

sortSCCsByMinFunction · 0.85

Calls 1

sortKeyMethod · 0.45

Tested by

no test coverage detected