Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for DeletePrefix (0.19 sec)

  1. cmd/object-api-options.go

    	opts, err = getOpts(ctx, r, bucket, object)
    	if err != nil {
    		return opts, err
    	}
    
    	deletePrefix := false
    	if d := r.Header.Get(xhttp.MinIOForceDelete); d != "" {
    		if b, err := strconv.ParseBool(d); err == nil {
    			deletePrefix = b
    		} else {
    			return opts, err
    		}
    	}
    
    	opts.DeletePrefix = deletePrefix
    	opts.Versioned = globalBucketVersioningSys.PrefixEnabled(bucket, object)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. cmd/config.go

    	historyFile := pathJoin(minioConfigHistoryPrefix, uuidKV+kvPrefix)
    	_, err := objAPI.DeleteObject(ctx, minioMetaBucket, historyFile, ObjectOptions{
    		DeletePrefix:       true,
    		DeletePrefixObject: true, // use prefix delete on exact object (this is an optimization to avoid fan-out calls)
    	})
    	return err
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 23 10:07:06 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. cmd/config-common.go

    }
    
    func deleteConfig(ctx context.Context, objAPI objectDeleter, configFile string) error {
    	_, err := objAPI.DeleteObject(ctx, minioMetaBucket, configFile, ObjectOptions{
    		DeletePrefix:       true,
    		DeletePrefixObject: true, // use prefix delete on exact object (this is an optimization to avoid fan-out calls)
    	})
    	if err != nil && isErrObjectNotFound(err) {
    		return errConfigNotFound
    	}
    	return err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. cmd/erasure-sets.go

    }
    
    func (s *erasureSets) deletePrefix(ctx context.Context, bucket string, prefix string) error {
    	var wg sync.WaitGroup
    	wg.Add(len(s.sets))
    	for _, s := range s.sets {
    		go func(s *erasureObjects) {
    			defer wg.Done()
    			// This is a force delete, no reason to throw errors.
    			s.DeleteObject(ctx, bucket, prefix, ObjectOptions{DeletePrefix: true})
    		}(s)
    	}
    	wg.Wait()
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  5. cmd/batch-expire.go

    						ObjectName: exp.Name,
    						VersionID:  exp.VersionID,
    					},
    				}
    				toDel = append(toDel, od)
    				oiCache.Add(od, &exp.ObjectInfo)
    			}
    
    			var done bool
    			// DeleteObject(deletePrefix: true) to expire all versions of an object
    			for _, exp := range toExpireAll {
    				var success bool
    				for attempts := 1; attempts <= retryAttempts; attempts++ {
    					select {
    					case <-ctx.Done():
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool.go

    		}
    	}
    
    	return z.serverPools[idx].PutObject(ctx, bucket, object, data, opts)
    }
    
    func (z *erasureServerPools) deletePrefix(ctx context.Context, bucket string, prefix string) error {
    	for _, pool := range z.serverPools {
    		if _, err := pool.DeleteObject(ctx, bucket, prefix, ObjectOptions{DeletePrefix: true}); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  7. cmd/erasure-object.go

    				Recursive: true,
    			})
    		}, index)
    	}
    
    	return reduceWriteQuorumErrs(ctx, g.Wait(), objectOpIgnoredErrs, writeQuorum)
    }
    
    func (er erasureObjects) deletePrefix(ctx context.Context, bucket, prefix string) error {
    	disks := er.getDisks()
    	// Assume (N/2 + 1) quorum for Delete()
    	// this is a theoretical assumption such that
    	// for delete's we do not need to honor storage
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  8. cmd/object-api-interface.go

    	ReplicationSourceLegalholdTimestamp time.Time // set if MinIOSourceObjectLegalholdTimestamp received
    	ReplicationSourceRetentionTimestamp time.Time // set if MinIOSourceObjectRetentionTimestamp received
    	DeletePrefix                        bool      // set true to enforce a prefix deletion, only application for DeleteObject API,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-rebalance.go

    				stopFn := globalRebalanceMetrics.log(rebalanceMetricRebalanceRemoveObject, poolIdx, bucket, entry.name)
    				_, err := set.DeleteObject(ctx,
    					bucket,
    					encodeDirObject(entry.name),
    					ObjectOptions{
    						DeletePrefix:       true, // use prefix delete to delete all versions at once.
    						DeletePrefixObject: true, // use prefix delete on exact object (this is an optimization to avoid fan-out calls)
    						NoAuditLog:         true,
    					},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-decom.go

    				stopFn := globalDecommissionMetrics.log(decomMetricDecommissionRemoveObject, idx, bi.Name, entry.name)
    				_, err := set.DeleteObject(ctx,
    					bi.Name,
    					encodeDirObject(entry.name),
    					ObjectOptions{
    						DeletePrefix:       true, // use prefix delete to delete all versions at once.
    						DeletePrefixObject: true, // use prefix delete on exact object (this is an optimization to avoid fan-out calls)
    						NoAuditLog:         true,
    					},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top