Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReplicateAny (0.12 sec)

  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
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (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()
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
Back to top