Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newLockAPI (0.27 sec)

  1. cmd/lock-rest-client.go

    func (c *lockRESTClient) ForceUnlock(ctx context.Context, args dsync.LockArgs) (reply bool, err error) {
    	return c.call(ctx, lockRPCForceUnlock, &args)
    }
    
    func newLockAPI(endpoint Endpoint) dsync.NetLocker {
    	if endpoint.IsLocal {
    		return globalLockServer
    	}
    	return newlockRESTClient(endpoint)
    }
    
    // Returns a lock rest client.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Nov 24 17:07:14 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  2. cmd/erasure-sets.go

    	}
    
    	erasureLockers := map[string]dsync.NetLocker{}
    	for _, endpoint := range endpoints.Endpoints {
    		if _, ok := erasureLockers[endpoint.Host]; !ok {
    			erasureLockers[endpoint.Host] = newLockAPI(endpoint)
    		}
    	}
    
    	var wg sync.WaitGroup
    	var lk sync.Mutex
    	for i := 0; i < setCount; i++ {
    		lockerEpSet := set.NewStringSet()
    		for j := 0; j < setDriveCount; j++ {
    			wg.Add(1)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 37.7K bytes
    - Viewed (5)
Back to top