Skip to content

Commit

Permalink
Don't ban namespace in export_backup (#8099)
Browse files Browse the repository at this point in the history
(cherry picked from commit 89b573a)
  • Loading branch information
ahsanbarkati authored Nov 30, 2021
1 parent 683885a commit da16e22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions worker/restore_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,10 @@ func RunMapper(req *pb.RestoreRequest, mapDir string) (*mapResult, error) {
case pb.DropOperation_ATTR:
dropAttr[op.DropValue] = struct{}{}
case pb.DropOperation_NS:
// pstore will be nil for export_backup tool. In that case we don't need to ban ns.
if pstore == nil {
continue
}
// If there is a drop namespace, we just ban the namespace in the pstore.
ns, err := strconv.ParseUint(op.DropValue, 0, 64)
if err != nil {
Expand Down

0 comments on commit da16e22

Please sign in to comment.