Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newMetacache (0.08 sec)

  1. cmd/metacache-bucket.go

    		return c
    	}
    
    	if !o.Create {
    		return metacache{
    			id:     o.ID,
    			bucket: o.Bucket,
    			status: scanStateNone,
    		}
    	}
    
    	// Create new and add.
    	best := o.newMetacache()
    	b.caches[o.ID] = best
    	b.cachesRoot[best.root] = append(b.cachesRoot[best.root], best.id)
    	b.updated = true
    	b.debugf("returning new cache %s, bucket: %v", best.id, best.bucket)
    	return best
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. cmd/metacache-server-pool.go

    	inCh := make(chan metaCacheEntry, metacacheBlockSize)
    	outCh := make(chan metaCacheEntry, o.Limit)
    
    	filteredResults := o.gatherResults(ctx, outCh)
    
    	mc := o.newMetacache()
    	meta := metaCacheRPC{meta: &mc, cancel: cancel, rpc: globalNotificationSys.restClientFromHash(pathJoin(o.Bucket, o.Prefix)), o: *o}
    
    	// Save listing...
    	go func() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. cmd/metacache-set.go

    	o.Lifecycle = lc
    	o.Versioning = vc
    	o.Replication = replicationConfig{
    		Config:  replCfg,
    		remotes: tgts,
    	}
    	o.Retention = rcfg
    }
    
    // newMetacache constructs a new metacache from the options.
    func (o listPathOptions) newMetacache() metacache {
    	return metacache{
    		id:          o.ID,
    		bucket:      o.Bucket,
    		root:        o.BaseDir,
    		recursive:   o.Recursive,
    		status:      scanStateStarted,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top