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

Function fromBackupKey

worker/restore_map.go:283–289  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

281}
282
283func fromBackupKey(key []byte) ([]byte, uint64, error) {
284 backupKey := &pb.BackupKey{}
285 if err := proto.Unmarshal(key, backupKey); err != nil {
286 return nil, 0, errors.Wrapf(err, "while reading backup key %s", hex.Dump(key))
287 }
288 return x.FromBackupKey(backupKey), backupKey.Namespace, nil
289}
290
291func (m *mapper) processReqCh(ctx context.Context) error {
292 buf := z.NewBuffer(20<<20, "processKVList")

Callers 1

processReqChMethod · 0.85

Calls 1

FromBackupKeyFunction · 0.92

Tested by

no test coverage detected