Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for IsSuspended (0.08 sec)

  1. cmd/erasure-server-pool.go

    	nSets := make([]int, len(z.serverPools))
    	g := errgroup.WithNErrs(len(z.serverPools))
    	for index := range z.serverPools {
    		index := index
    		// Skip suspended pools or pools participating in rebalance for any new
    		// I/O.
    		if z.IsSuspended(index) || z.IsPoolRebalancing(index) {
    			continue
    		}
    		pool := z.serverPools[index]
    		nSets[index] = pool.setCount
    		g.Go(func() error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-decom.go

    	} else {
    		// Complete the decommission..
    		decomLogIf(GlobalContext, z.CompleteDecommission(dctx, idx))
    	}
    }
    
    func (z *erasureServerPools) IsSuspended(idx int) bool {
    	z.poolMetaMutex.RLock()
    	defer z.poolMetaMutex.RUnlock()
    	return z.poolMeta.IsSuspended(idx)
    }
    
    // Decommission - start decommission session.
    func (z *erasureServerPools) Decommission(ctx context.Context, indices ...int) error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  3. internal/bucket/versioning/versioning.go

    		}
    	}
    	return true
    }
    
    // Suspended - returns true if versioning is suspended
    func (v Versioning) Suspended() bool {
    	return v.Status == Suspended
    }
    
    // PrefixSuspended - returns true if versioning is suspended at the bucket level
    // or suspended on the given prefix.
    func (v Versioning) PrefixSuspended(prefix string) bool {
    	if v.Status == Suspended {
    		return true
    	}
    	if v.Status == Enabled {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. cmd/bucket-versioning-handler.go

    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    		return
    	}
    	if rc, _ := getReplicationConfig(ctx, bucket); rc != nil && v.Suspended() {
    		writeErrorResponse(ctx, w, APIError{
    			Code:           "InvalidBucketState",
    			Description:    "A replication configuration is present on this bucket, bucket wide versioning cannot be suspended.",
    			HTTPStatusCode: http.StatusBadRequest,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. cmd/admin-bucket-handlers.go

    				bucketMap[bucket] = &v
    			}
    
    			if globalSiteReplicationSys.isEnabled() && v.Suspended() {
    				rpt.SetStatus(bucket, fileName, fmt.Errorf("Cluster replication is enabled for this site, so the versioning state cannot be suspended."))
    				continue
    			}
    
    			if rcfg, _ := globalBucketObjectLockSys.Get(bucket); rcfg.LockEnabled && v.Suspended() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  6. cmd/object-handlers-common.go

    			remaining = nil
    		}
    		vc, _ := globalBucketVersioningSys.Get(bucket)
    		deletedObjs, errs := o.DeleteObjects(ctx, bucket, toDel, ObjectOptions{
    			PrefixEnabledFn:  vc.PrefixEnabled,
    			VersionSuspended: vc.Suspended(),
    		})
    
    		for i, dobj := range deletedObjs {
    			oi := ObjectInfo{
    				Bucket:    bucket,
    				Name:      dobj.ObjectName,
    				VersionID: dobj.VersionID,
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. cmd/object-multipart-handlers.go

    	}
    
    	completeMultiPartUpload := objectAPI.CompleteMultipartUpload
    
    	versioned := globalBucketVersioningSys.PrefixEnabled(bucket, object)
    	suspended := globalBucketVersioningSys.PrefixSuspended(bucket, object)
    	os := newObjSweeper(bucket, object).WithVersioning(versioned, suspended)
    	if !globalTierConfigMgr.Empty() {
    		// Get appropriate object info to identify the remote object to delete
    		goiOpts := os.GetOpts()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  8. cmd/erasure-object.go

    		if objects[i].VersionID == "" {
    			// MinIO extension to bucket version configuration
    			suspended := opts.VersionSuspended
    			versioned := opts.Versioned
    			if opts.PrefixEnabledFn != nil {
    				versioned = opts.PrefixEnabledFn(objects[i].ObjectName)
    			}
    			if versioned || suspended {
    				// Bucket is versioned and no version was explicitly
    				// mentioned for deletes, create a delete marker instead.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  9. cmd/object-api-options.go

    	// dramatically reduces namespace pollution while keeping the
    	// benefits of replication, make sure to apply version suspension
    	// only at bucket level instead.
    	opts.VersionSuspended = globalBucketVersioningSys.Suspended(bucket)
    	// For directory objects, delete `null` version permanently.
    	if isDirObject(object) && opts.VersionID == "" {
    		opts.VersionID = nullVersionID
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. cmd/bucket-handlers.go

    				}
    				continue
    			}
    		}
    
    		opts := ObjectOptions{
    			VersionID:        object.VersionID,
    			Versioned:        vc.PrefixEnabled(object.ObjectName),
    			VersionSuspended: vc.Suspended(),
    		}
    
    		if replicateDeletes || object.VersionID != "" && hasLockEnabled || !globalTierConfigMgr.Empty() {
    			if !globalTierConfigMgr.Empty() && object.VersionID == "" && opts.VersionSuspended {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
Back to top