Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for WithNErrs (0.07 sec)

  1. cmd/peer-s3-server.go

    	globalLocalDrivesMu.RLock()
    	localDrives := cloneDrives(globalLocalDrivesMap)
    	globalLocalDrivesMu.RUnlock()
    
    	// Initialize sync waitgroup.
    	g := errgroup.WithNErrs(len(localDrives))
    
    	// Disk states slices
    	beforeState := make([]string, len(localDrives))
    	afterState := make([]string, len(localDrives))
    
    	// Make a volume entry on all underlying storage disks.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. cmd/notification.go

    // GetLocks - makes GetLocks RPC call on all peers.
    func (sys *NotificationSys) GetLocks(ctx context.Context, r *http.Request) []*PeerLocks {
    	locksResp := make([]*PeerLocks, len(sys.peerClients))
    	g := errgroup.WithNErrs(len(sys.peerClients))
    	for index, client := range sys.peerClients {
    		index := index
    		client := client
    		g.Go(func() error {
    			if client == nil {
    				return errPeerNotReachable
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  3. cmd/peer-s3-client.go

    	}
    }
    
    // HealBucket - heals buckets at node level
    func (sys *S3PeerSys) HealBucket(ctx context.Context, bucket string, opts madmin.HealOpts) (madmin.HealResultItem, error) {
    	g := errgroup.WithNErrs(len(sys.peerClients))
    
    	for idx, client := range sys.peerClients {
    		idx := idx
    		client := client
    		g.Go(func() error {
    			if client == nil {
    				return errPeerOffline
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. cmd/format-erasure.go

    // loadFormatErasureAll - load all format config from all input disks in parallel.
    func loadFormatErasureAll(storageDisks []StorageAPI, heal bool) ([]*formatErasureV3, []error) {
    	// Initialize list of errors.
    	g := errgroup.WithNErrs(len(storageDisks))
    
    	// Initialize format configs.
    	formats := make([]*formatErasureV3, len(storageDisks))
    
    	// Load format from each disk in parallel
    	for index := range storageDisks {
    		index := index
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  5. cmd/iam-object-store.go

    	return u, nil
    }
    
    func (iamOS *IAMObjectStore) loadUserConcurrent(ctx context.Context, userType IAMUserType, users ...string) ([]UserIdentity, error) {
    	userIdentities := make([]UserIdentity, len(users))
    	g := errgroup.WithNErrs(len(users))
    
    	for index := range users {
    		index := index
    		g.Go(func() error {
    			userName := path.Dir(users[index])
    			user, err := iamOS.loadUserIdentity(ctx, userName, userType)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  6. cmd/erasure-metadata.go

    }
    
    func writeAllMetadataWithRevert(ctx context.Context, disks []StorageAPI, origbucket, bucket, prefix string, files []FileInfo, quorum int, revert bool) ([]StorageAPI, error) {
    	g := errgroup.WithNErrs(len(disks))
    
    	// Start writing `xl.meta` to all disks in parallel.
    	for index := range disks {
    		index := index
    		g.Go(func() error {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  7. cmd/erasure-object.go

    	fi := FileInfo{
    		VersionID: m.VersionID,
    	}
    	if opts.VersionID != "" {
    		fi.VersionID = opts.VersionID
    	}
    	fi.SetTierFreeVersionID(mustGetUUID())
    	disks := er.getDisks()
    	g := errgroup.WithNErrs(len(disks))
    	for index := range disks {
    		index := index
    		g.Go(func() error {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  8. cmd/erasure-sets.go

    func (s *erasureSets) StorageInfo(ctx context.Context) StorageInfo {
    	var storageInfo madmin.StorageInfo
    
    	storageInfos := make([]madmin.StorageInfo, len(s.sets))
    
    	g := errgroup.WithNErrs(len(s.sets))
    	for index := range s.sets {
    		index := index
    		g.Go(func() error {
    			storageInfos[index] = s.sets[index].StorageInfo(ctx)
    			return nil
    		}, index)
    	}
    
    	// Wait for the go routines.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  9. cmd/erasure.go

    func getDisksInfo(disks []StorageAPI, endpoints []Endpoint, metrics bool) (disksInfo []madmin.Disk) {
    	disksInfo = make([]madmin.Disk, len(disks))
    
    	g := errgroup.WithNErrs(len(disks))
    	for index := range disks {
    		index := index
    		g.Go(func() error {
    			di := madmin.Disk{
    				Endpoint:  endpoints[index].String(),
    				PoolIndex: endpoints[index].PoolIdx,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    // do not use this function outside of completeMultipartUpload()
    func (er erasureObjects) cleanupMultipartPath(ctx context.Context, paths ...string) {
    	storageDisks := er.getDisks()
    
    	g := errgroup.WithNErrs(len(storageDisks))
    	for index, disk := range storageDisks {
    		if disk == nil {
    			continue
    		}
    		index := index
    		g.Go(func() error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
Back to top