Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getReplicationConfig (0.15 sec)

  1. cmd/bucket-replication-handlers.go

    	if _, err := objectAPI.GetBucketInfo(ctx, bucket, BucketOptions{}); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	config, _, err := globalBucketMetadataSys.GetReplicationConfig(ctx, bucket)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	configData, err := xml.Marshal(config)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  2. cmd/bucket-metadata-sys.go

    		}
    		return nil, time.Time{}, err
    	}
    	return meta.quotaConfig, meta.QuotaConfigUpdatedAt, nil
    }
    
    // GetReplicationConfig returns configured bucket replication config
    // The returned object may not be modified.
    func (sys *BucketMetadataSys) GetReplicationConfig(ctx context.Context, bucket string) (*replication.Config, time.Time, error) {
    	meta, reloaded, err := sys.GetConfig(ctx, bucket)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. cmd/bucket-versioning-handler.go

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

    	for bucket, bui := range dataUsageInfo.BucketsUsage {
    		if bui.ReplicatedSizeV1 > 0 || bui.ReplicationFailedCountV1 > 0 ||
    			bui.ReplicationFailedSizeV1 > 0 || bui.ReplicationPendingCountV1 > 0 {
    			cfg, _ := getReplicationConfig(GlobalContext, bucket)
    			if cfg != nil && cfg.RoleArn != "" {
    				if dataUsageInfo.ReplicationInfo == nil {
    					dataUsageInfo.ReplicationInfo = make(map[string]BucketTargetUsageInfo)
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. cmd/bucket-replication.go

    	ReplicationSsecChecksumHeader = "X-Minio-Replication-Ssec-Crc"
    )
    
    // gets replication config associated to a given bucket name.
    func getReplicationConfig(ctx context.Context, bucketName string) (rc *replication.Config, err error) {
    	rCfg, _, err := globalBucketMetadataSys.GetReplicationConfig(ctx, bucketName)
    	if err != nil && !errors.Is(err, BucketReplicationConfigNotFound{Bucket: bucketName}) {
    		return rCfg, err
    	}
    	return rCfg, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  6. cmd/global-heal.go

    			}
    			// Check if bucket is object locked.
    			lr, err = globalBucketObjectLockSys.Get(bucket)
    			if err != nil {
    				retErr = err
    				healingLogIf(ctx, err)
    				continue
    			}
    			rcfg, err = getReplicationConfig(ctx, bucket)
    			if err != nil {
    				retErr = err
    				healingLogIf(ctx, err)
    				continue
    			}
    		}
    
    		if serverDebugLog {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. cmd/admin-bucket-handlers.go

    					return
    				}
    				rawDataFn(bytes.NewReader(configData), cfgPath, len(configData))
    			case bucketReplicationConfig:
    				config, _, err := globalBucketMetadataSys.GetReplicationConfig(ctx, bucket)
    				if err != nil {
    					if errors.Is(err, BucketReplicationConfigNotFound{Bucket: bucket}) {
    						continue
    					}
    					writeErrorResponse(ctx, w, exportError(ctx, err, cfgFile, bucket), r.URL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. cmd/bucket-targets.go

    	if err != nil {
    		return BucketRemoteArnInvalid{Bucket: bucket}
    	}
    
    	if arn.Type == madmin.ReplicationService {
    		// reject removal of remote target if replication configuration is present
    		rcfg, err := getReplicationConfig(ctx, bucket)
    		if err == nil && rcfg != nil {
    			for _, tgtArn := range rcfg.FilterTargetArns(replication.ObjectOpts{OpType: replication.AllReplicationType}) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-decom.go

    			return err
    		}
    
    		// Check if bucket is object locked.
    		lr, err = globalBucketObjectLockSys.Get(bi.Name)
    		if err != nil {
    			return err
    		}
    
    		rcfg, err = getReplicationConfig(ctx, bi.Name)
    		if err != nil {
    			return err
    		}
    	}
    
    	for setIdx, set := range pool.sets {
    		set := set
    
    		filterLifecycle := func(bucket, object string, fi FileInfo) bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-rebalance.go

    			return err
    		}
    
    		// Check if bucket is object locked.
    		lr, err = globalBucketObjectLockSys.Get(bucket)
    		if err != nil {
    			return err
    		}
    
    		rcfg, err = getReplicationConfig(ctx, bucket)
    		if err != nil {
    			return err
    		}
    	}
    
    	pool := z.serverPools[poolIdx]
    
    	const envRebalanceWorkers = "_MINIO_REBALANCE_WORKERS"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
Back to top