MCPcopy
hub / github.com/dgraph-io/dgraph / Backup

Method Backup

worker/backup.go:171–174  ·  view source on GitHub ↗

Backup handles a request coming from another node.

(ctx context.Context, req *pb.BackupRequest)

Source from the content-addressed store, hash-verified

169
170// Backup handles a request coming from another node.
171func (w *grpcWorker) Backup(ctx context.Context, req *pb.BackupRequest) (*pb.BackupResponse, error) {
172 glog.V(2).Infof("Received backup request via Grpc: %+v", req)
173 return backupCurrentGroup(ctx, req)
174}
175
176func backupCurrentGroup(ctx context.Context, req *pb.BackupRequest) (*pb.BackupResponse, error) {
177 glog.Infof("Backup request: group %d at %d", req.GroupId, req.ReadTs)

Callers

nothing calls this directly

Calls 2

backupCurrentGroupFunction · 0.85
InfofMethod · 0.80

Tested by

no test coverage detected