MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / VerifyPack

Function VerifyPack

x/debug.go:40–44  ·  view source on GitHub ↗

VerifyPack checks that the Pack should not be nil if the postings exist.

(plist *pb.PostingList)

Source from the content-addressed store, hash-verified

38
39// VerifyPack checks that the Pack should not be nil if the postings exist.
40func VerifyPack(plist *pb.PostingList) {
41 if plist.Pack == nil && len(plist.Postings) > 0 {
42 log.Panic("UID Pack verification failed: Pack is nil for posting list: %+v", plist)
43 }
44}
45
46// VerifySnapshot iterates over all the keys in badger. For all data keys it checks
47// if key is a split key and it verifies if all part are present in badger as well.

Callers 3

MarshalPostingListFunction · 0.92
rollupMethod · 0.92
VerifySnapshotFunction · 0.70

Calls 1

PanicMethod · 0.80

Tested by

no test coverage detected