Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for matched (0.16 sec)

  1. cmd/xl-storage-disk-id-check.go

    	t := time.Now().Unix()
    	e.init.Do(func() {
    		e.cached.Store(&AccElem{})
    		atomic.StoreInt64(&e.cachedSec, t)
    	})
    	acc := e.cached.Load()
    	if lastT := atomic.LoadInt64(&e.cachedSec); lastT != t {
    		// Check if lastT was changed by someone else.
    		if atomic.CompareAndSwapInt64(&e.cachedSec, lastT, t) {
    			// Now we swap in a new.
    			newAcc := &AccElem{}
    			old := e.cached.Swap(newAcc)
    			var a AccElem
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool.go

    		// is '.minio.sys'
    		if bucket == minioMetaBucket {
    			if wildcard.Match("buckets/*/.metacache/*", entry.name) {
    				return nil
    			}
    			if wildcard.Match("tmp/*", entry.name) {
    				return nil
    			}
    			if wildcard.Match("multipart/*", entry.name) {
    				return nil
    			}
    			if wildcard.Match("tmp-old/*", entry.name) {
    				return nil
    			}
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  3. cmd/iam.go

    }
    
    func (sys *IAMSys) periodicRoutines(ctx context.Context, baseInterval time.Duration) {
    	// Watch for IAM config changes for iamStorageWatcher.
    	watcher, isWatcher := sys.store.IAMStorageAPI.(iamStorageWatcher)
    	if isWatcher {
    		go func() {
    			ch := watcher.watch(ctx, iamConfigPrefix)
    			for event := range ch {
    				if err := sys.loadWatchedEvent(ctx, event); err != nil {
    					// we simply log errors
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  4. cmd/storage-datatypes.go

    func (fi FileInfo) ReadQuorum(dquorum int) int {
    	if fi.Deleted {
    		return dquorum
    	}
    	return fi.Erasure.DataBlocks
    }
    
    // Equals checks if fi(FileInfo) matches ofi(FileInfo)
    func (fi FileInfo) Equals(ofi FileInfo) (ok bool) {
    	typ1, ok1 := crypto.IsEncrypted(fi.Metadata)
    	typ2, ok2 := crypto.IsEncrypted(ofi.Metadata)
    	if ok1 != ok2 {
    		return false
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  5. cmd/site-replication.go

    	return true
    }
    
    // isIAMPolicyReplicated returns true if count of replicated IAM policies matches total
    // number of sites and IAM policies are identical.
    func isIAMPolicyReplicated(cntReplicated, total int, policies []*policy.Policy) bool {
    	if cntReplicated > 0 && cntReplicated != total {
    		return false
    	}
    	// check if policies match between sites
    	var prev *policy.Policy
    	for i, p := range policies {
    		if i == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  6. internal/grid/handlers.go

    func NewRemoteErrString(msg string) *RemoteErr {
    	r := RemoteErr(msg)
    	return &r
    }
    
    func (r RemoteErr) Error() string {
    	return string(r)
    }
    
    // Is returns if the string representation matches.
    func (r *RemoteErr) Is(other error) bool {
    	if r == nil || other == nil {
    		return r == other
    	}
    	var o RemoteErr
    	if errors.As(other, &o) {
    		return r == &o
    	}
    	return false
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. cmd/bucket-replication.go

    const (
    	replicateMetadata replicationAction = "metadata"
    	replicateNone     replicationAction = "none"
    	replicateAll      replicationAction = "all"
    )
    
    // matches k1 with all keys, returns 'true' if one of them matches
    func equals(k1 string, keys ...string) bool {
    	for _, k2 := range keys {
    		if strings.EqualFold(k1, k2) {
    			return true
    		}
    	}
    	return false
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  8. internal/bucket/lifecycle/lifecycle_test.go

    			}
    			rules := tc.lc.FilterRules(tc.opts)
    			if tc.hasRules && len(rules) == 0 {
    				t.Fatalf("%d: Expected at least one rule to match but none matched", i+1)
    			}
    			if !tc.hasRules && len(rules) > 0 {
    				t.Fatalf("%d: Expected no rules to match but got matches %v", i+1, rules)
    			}
    		})
    	}
    }
    
    // TestDeleteAllVersions tests ordering among events, especially ones which
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  9. cmd/admin-handlers.go

    	err := o.GetRawData(ctx, volume, file, rawDataFn)
    	if err != nil {
    		if errors.Is(err, errFileNotFound) {
    			addErr("GetRawData: No files matched the given pattern")
    			return
    		}
    		embedFileInZip(inspectZipW, "GetRawData-err.txt", []byte(err.Error()), 0o600)
    		adminLogIf(ctx, err)
    	}
    
    	// save the format.json as part of inspect by default
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  10. cmd/metacache-set.go

    			if current.name == "" {
    				topEntries[i] = entry
    				current = entry
    				agree++
    				continue
    			}
    			// If exact match, we agree.
    			if _, ok := current.matches(&entry, true); ok {
    				topEntries[i] = entry
    				agree++
    				continue
    			}
    			// If only the name matches we didn't agree, but add it for resolution.
    			if entry.name == current.name {
    				topEntries[i] = entry
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
Back to top