Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for InitOnce (0.04 sec)

  1. cmd/erasure-server-pool.go

    // that all buckets are present on all serverPools.
    func (z *erasureServerPools) ListBuckets(ctx context.Context, opts BucketOptions) (buckets []BucketInfo, err error) {
    	if opts.Cached {
    		listBucketsCache.InitOnce(time.Second,
    			cachevalue.Opts{ReturnLastGood: true, NoWait: true},
    			func(ctx context.Context) ([]BucketInfo, error) {
    				ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
    				defer cancel()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		s.oDirect = false
    	} else if err := s.checkODirectDiskSupport(info.FSType); err == nil {
    		s.oDirect = true
    	} else {
    		return s, err
    	}
    
    	// Initialize DiskInfo cache
    	s.diskInfoCache.InitOnce(time.Second, cachevalue.Opts{},
    		func(ctx context.Context) (DiskInfo, error) {
    			dcinfo := DiskInfo{}
    			di, root, err := getDiskInfo(s.drivePath)
    			if err != nil {
    				return dcinfo, err
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top