Backup handles a request coming from another node.
(ctx context.Context, req *pb.BackupRequest)
| 169 | |
| 170 | // Backup handles a request coming from another node. |
| 171 | func (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 | |
| 176 | func backupCurrentGroup(ctx context.Context, req *pb.BackupRequest) (*pb.BackupResponse, error) { |
| 177 | glog.Infof("Backup request: group %d at %d", req.GroupId, req.ReadTs) |
nothing calls this directly
no test coverage detected