Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for RWMutex (0.3 sec)

  1. cmd/bucket-lifecycle.go

    }
    
    func (e expiryTask) OpHash() uint64 {
    	return xxh3.HashString(e.objInfo.Bucket + e.objInfo.Name)
    }
    
    // expiryState manages all ILM related expiration activities.
    type expiryState struct {
    	mu      sync.RWMutex
    	workers atomic.Pointer[[]chan expiryOp]
    
    	ctx    context.Context
    	objAPI ObjectLayer
    
    	stats expiryStats
    }
    
    // PendingTasks returns the number of pending ILM expiry tasks.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  2. cmd/admin-heal-ops.go

    	// slice of available heal result records
    	Items []madmin.HealResultItem `json:"Items"`
    }
    
    // structure to hold state of all heal sequences in server memory
    type allHealState struct {
    	sync.RWMutex
    
    	// map of heal path to heal sequence
    	healSeqMap map[string]*healSequence // Indexed by endpoint
    	// keep track of the healing status of disks in the memory
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  3. internal/kms/kes.go

    			return
    		case <-timer.C:
    			c.RefreshKey(ctx, logger)
    
    			// Reset for the next interval
    			timer.Reset(cacheDuration)
    		}
    	}
    }
    
    type kesClient struct {
    	lock         sync.RWMutex
    	defaultKeyID string
    	client       *kes.Client
    }
    
    var ( // compiler checks
    	_ KMS             = (*kesClient)(nil)
    	_ KeyManager      = (*kesClient)(nil)
    	_ IdentityManager = (*kesClient)(nil)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  4. internal/rest/client.go

    	TraceOutput io.Writer // Debug trace output
    
    	httpClient   *http.Client
    	url          *url.URL
    	newAuthToken func(audience string) string
    
    	sync.RWMutex // mutex for lastErr
    	lastErr      error
    	lastErrTime  time.Time
    }
    
    type restError string
    
    func (e restError) Error() string {
    	return string(e)
    }
    
    func (e restError) Timeout() bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  5. cmd/globals.go

    	// List of local drives to this node, this is only set during server startup,
    	// and is only mutated by HealFormat. Hold globalLocalDrivesMu to access.
    	globalLocalDrives   []StorageAPI
    	globalLocalDrivesMu sync.RWMutex
    
    	globalDriveMonitoring = env.Get("_MINIO_DRIVE_ACTIVE_MONITORING", config.EnableOn) == config.EnableOn
    
    	// Is MINIO_CI_CD set?
    	globalIsCICD bool
    
    	globalRootDiskThreshold uint64
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  6. cmd/erasure-decode.go

    	newBuf := dst
    	if len(dst) != len(p.readers) {
    		newBuf = make([][]byte, len(p.readers))
    	} else {
    		for i := range newBuf {
    			newBuf[i] = newBuf[i][:0]
    		}
    	}
    	var newBufLK sync.RWMutex
    
    	if p.offset+p.shardSize > p.shardFileSize {
    		p.shardSize = p.shardFileSize - p.offset
    	}
    	if p.shardSize == 0 {
    		return newBuf, nil
    	}
    
    	readTriggerCh := make(chan bool, len(p.readers))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  7. cmd/handler-api.go

    	"github.com/minio/minio/internal/config/api"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/minio/internal/mcontext"
    )
    
    type apiConfig struct {
    	mu sync.RWMutex
    
    	requestsDeadline      time.Duration
    	requestsPool          chan struct{}
    	clusterDeadline       time.Duration
    	listQuorum            string
    	corsAllowOrigins      []string
    	replicationPriority   string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 10K bytes
    - Viewed (0)
  8. cmd/bucket-metadata-sys.go

    	"github.com/minio/pkg/v2/policy"
    	"github.com/minio/pkg/v2/sync/errgroup"
    )
    
    // BucketMetadataSys captures all bucket metadata for a given cluster.
    type BucketMetadataSys struct {
    	objAPI ObjectLayer
    
    	sync.RWMutex
    	initialized bool
    	metadataMap map[string]BucketMetadata
    }
    
    // Count returns number of bucket metadata map entries.
    func (sys *BucketMetadataSys) Count() int {
    	sys.RLock()
    	defer sys.RUnlock()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  9. cmd/iam-etcd-store.go

    	return pathClean(strings.TrimSuffix(strings.TrimPrefix(s, prefix), suffix))
    }
    
    // IAMEtcdStore implements IAMStorageAPI
    type IAMEtcdStore struct {
    	sync.RWMutex
    
    	*iamCache
    
    	usersSysType UsersSysType
    
    	client *etcd.Client
    }
    
    func newIAMEtcdStore(client *etcd.Client, usersSysType UsersSysType) *IAMEtcdStore {
    	return &IAMEtcdStore{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  10. internal/config/storageclass/storage-class.go

    		},
    	}
    )
    
    // StorageClass - holds storage class information
    type StorageClass struct {
    	Parity int
    }
    
    // ConfigLock is a global lock for storage-class config
    var ConfigLock sync.RWMutex
    
    // Config storage class configuration
    type Config struct {
    	Standard    StorageClass `json:"standard"`
    	RRS         StorageClass `json:"rrs"`
    	Optimize    string       `json:"optimize"`
    	inlineBlock int64
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
Back to top