daemon/core/broker.py
def delnodemap(self, sock, nodenum):
        ''' Remove a node number to emulation server mapping.
            Return the number of nodes left on this server.
        '''
        self.nodemap_lock.acquire()
        count = None
        if nodenum not in self.nodemap:
            self.nodemap_lock.release()
            return count
        found = False
        for server in self.nodemap[nodenum]:
            (host, port, srvsock) = self.getserver(server)
            if srvsock == sock:
                found = True
                break
        if server in self.nodecounts:
            count = self.nodecounts[server]
        if found:
            self.nodemap[nodenum].remove(server)
            if server in self.nodecounts:
                count -= 1
                self.nodecounts[server] = count
        self.nodemap_lock.release()
        return count
 Remove a node number to emulation server mapping.
            Return the number of nodes left on this server.
        
Remove a node number to emulation server mapping.
Return the number of nodes left on this server.
Remove a node number to emulation server mapping . Return the number of nodes left on this server .
def delnodemap(self, sock, nodenum):
        self.nodemap_lock.acquire()
        count = None
        if nodenum not in self.nodemap:
            self.nodemap_lock.release()
            return count
        found = False
        for server in self.nodemap[nodenum]:
            (host, port, srvsock) = self.getserver(server)
            if srvsock == sock:
                found = True
                break
        if server in self.nodecounts:
            count = self.nodecounts[server]
        if found:
            self.nodemap[nodenum].remove(server)
            if server in self.nodecounts:
                count -= 1
                self.nodecounts[server] = count
        self.nodemap_lock.release()
        return count
def delnodemap ( self , sock , nodenum ) : self . nodemap_lock . acquire ( ) count = None if nodenum not in self . nodemap : self . nodemap_lock . release ( ) return count found = False for server in self . nodemap [ nodenum ] : ( host , port , srvsock ) = self . getserver ( server ) if srvsock == sock : found = True break if server in self . nodecounts : count = self . nodecounts [ server ] if found : self . nodemap [ nodenum ] . remove ( server ) if server in self . nodecounts : count -= 1 self . nodecounts [ server ] = count self . nodemap_lock . release ( ) return count
Remove a node number to emulation server mapping.
Remove a node number to emulation server mapping .
''' Remove a node number to emulation server mapping.
            Return the number of nodes left on this server.
        '''
self
sock
nodenum