Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for ReplicateAny (0.06 seconds)

  1. cmd/bucket-replication-utils.go

    // ReplicateDecision represents replication decision for each target
    type ReplicateDecision struct {
    	targetsMap map[string]replicateTargetDecision
    }
    
    // ReplicateAny returns true if at least one target qualifies for replication
    func (d ReplicateDecision) ReplicateAny() bool {
    	for _, t := range d.targetsMap {
    		if t.Replicate {
    			return true
    		}
    	}
    	return false
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 26.1K bytes
    - Click Count (0)
  2. cmd/object-multipart-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Err), r.URL)
    		return
    	}
    	if dsc := mustReplicate(ctx, bucket, object, getMustReplicateOptions(metadata, "", "", replication.ObjectReplicationType, ObjectOptions{})); dsc.ReplicateAny() {
    		metadata[ReservedMetadataPrefixLower+ReplicationTimestamp] = UTCNow().Format(time.RFC3339Nano)
    		metadata[ReservedMetadataPrefixLower+ReplicationStatus] = dsc.PendingStatus()
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 07 16:13:09 GMT 2025
    - 39.5K bytes
    - Click Count (1)
Back to Top