Skip to content

Commit

Permalink
Don't ban namespace in export_backup
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsanbarkati committed Jun 11, 2021
1 parent cc87153 commit 89b573a
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 @@ -739,6 +739,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 89b573a

Please sign in to comment.