Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ForceUnlock (0.23 sec)

  1. cmd/lock-rest-client.go

    func (c *lockRESTClient) Unlock(ctx context.Context, args dsync.LockArgs) (reply bool, err error) {
    	return c.call(ctx, lockRPCUnlock, &args)
    }
    
    // ForceUnlock calls force unlock handler to forcibly unlock an active lock.
    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 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Nov 24 17:07:14 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  2. internal/dsync/dsync-server_test.go

    	reply = !l.lockNotFound
    	return reply, nil
    }
    
    func (l *lockServer) ForceUnlock(args *LockArgs) (reply bool, err error) {
    	if d := atomic.LoadInt64(&l.responseDelay); d != 0 {
    		time.Sleep(time.Duration(d))
    	}
    
    	l.mutex.Lock()
    	defer l.mutex.Unlock()
    	if len(args.UID) != 0 {
    		return false, fmt.Errorf("ForceUnlock called with non-empty UID: %s", args.UID)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  3. internal/lsync/lrwmutex.go

    		}
    	} else {
    		if !lm.isWriteLock {
    			if lm.ref > 0 {
    				lm.ref--
    				unlocked = true
    			}
    		}
    	}
    
    	return unlocked
    }
    
    // ForceUnlock will forcefully clear a write or read lock.
    func (lm *LRWMutex) ForceUnlock() {
    	lm.mu.Lock()
    	defer lm.mu.Unlock()
    
    	lm.ref = 0
    	lm.isWriteLock = false
    }
    
    // DRLocker returns a sync.Locker interface that implements
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  4. internal/dsync/locker.go

    	// Unlock (read/write) forcefully for given LockArgs. It should return
    	// * a boolean to indicate success/failure of the operation
    	// * an error on failure of unlock request operation.
    	ForceUnlock(ctx context.Context, args LockArgs) (bool, error)
    
    	// Returns underlying endpoint of this lock client instance.
    	String() string
    
    	// Close closes any underlying connection to the service endpoint
    	Close() error
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 18 20:44:38 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  5. internal/dsync/drwmutex.go

    					// Clean the lock locally and in remote nodes
    					forceUnlock(ctx, dm.clnt, id)
    					// Execute the caller lock loss callback
    					if lockLossCallback != nil {
    						lockLossCallback()
    					}
    					return
    				}
    
    				refreshTimer.Reset(dm.refreshInterval)
    			}
    		}
    	}()
    }
    
    func forceUnlock(ctx context.Context, ds *Dsync, id string) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  6. internal/dsync/dsync-client_test.go

    }
    
    func (restClient *ReconnectRESTClient) Refresh(ctx context.Context, args LockArgs) (refreshed bool, err error) {
    	return restClient.Call("/v1/refresh", args)
    }
    
    func (restClient *ReconnectRESTClient) ForceUnlock(ctx context.Context, args LockArgs) (reply bool, err error) {
    	return restClient.Call("/v1/force-unlock", args)
    }
    
    func (restClient *ReconnectRESTClient) String() string {
    	return restClient.u.String()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 20 17:36:09 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  7. docs/multi-user/admin/README.md

    - admin:OBDInfo
    - admin:Profiling,
    - admin:ServerTrace
    - admin:ConsoleLog
    - admin:KMSKeyStatus
    - admin:KMSCreateKey
    - admin:ServiceRestart
    - admin:ServiceStop
    - admin:Prometheus
    - admin:ForceUnlock
    - admin:TopLocksInfo
    - admin:BandwidthMonitor
    
    #### User/Group management permissions
    
    - admin:AddUserToGroup
    - admin:RemoveUserFromGroup
    - admin:GetGroup
    - admin:ListGroups
    - admin:EnableGroup
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 21 06:38:06 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  8. cmd/lock-rest-server.go

    }
    
    // ForceUnlockHandler - query expired lock status.
    func (l *lockRESTServer) ForceUnlockHandler(args *dsync.LockArgs) (*dsync.LockResp, *grid.RemoteErr) {
    	resp := lockRPCForceUnlock.NewResponse()
    
    	_, err := l.ll.ForceUnlock(context.Background(), *args)
    	return l.makeResp(resp, err)
    }
    
    var (
    	// Static lock handlers.
    	// All have the same signature.
    	lockRPCForceUnlock = newLockHandler(grid.HandlerLockForceUnlock)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  9. cmd/local-locker.go

    func (l *localLocker) IsOnline() bool {
    	return true
    }
    
    // IsLocal - local locker returns true.
    func (l *localLocker) IsLocal() bool {
    	return true
    }
    
    func (l *localLocker) ForceUnlock(ctx context.Context, args dsync.LockArgs) (reply bool, err error) {
    	select {
    	case <-ctx.Done():
    		return false, ctx.Err()
    	default:
    		l.mutex.Lock()
    		defer l.mutex.Unlock()
    		if len(args.UID) == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  10. cmd/local-locker_test.go

    								toUnLock = append(toUnLock, dsync.LockArgs{Resources: []string{k}, UID: lock.UID})
    							}
    						}
    					}
    					start := time.Now()
    					for _, lock := range toUnLock {
    						ok, err := l.ForceUnlock(context.Background(), lock)
    						if err != nil || !ok {
    							t.Fatal(err)
    						}
    					}
    					t.Logf("Expire 50%% took: %v. Left: %d/%d", time.Since(start).Round(time.Millisecond), len(l.lockUID), len(l.lockMap))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 11.8K bytes
    - Viewed (0)
Back to top