daemon/core/broker.py
def addnodemap(self, server, nodenum):
        ''' Record a node number to emulation server mapping.
        '''
        self.nodemap_lock.acquire()
        if nodenum in self.nodemap:
            if server in self.nodemap[nodenum]:
                self.nodemap_lock.release()
                return
            self.nodemap[nodenum].append(server)
        else:
            self.nodemap[nodenum] = [server,]
        if server in self.nodecounts:
            self.nodecounts[server] += 1
        else:
            self.nodecounts[server] = 1
        self.nodemap_lock.release()
 Record a node number to emulation server mapping.
        
Record a node number to emulation server mapping.
Record a node number to emulation server mapping .
def addnodemap(self, server, nodenum):
        self.nodemap_lock.acquire()
        if nodenum in self.nodemap:
            if server in self.nodemap[nodenum]:
                self.nodemap_lock.release()
                return
            self.nodemap[nodenum].append(server)
        else:
            self.nodemap[nodenum] = [server,]
        if server in self.nodecounts:
            self.nodecounts[server] += 1
        else:
            self.nodecounts[server] = 1
        self.nodemap_lock.release()
def addnodemap ( self , server , nodenum ) : self . nodemap_lock . acquire ( ) if nodenum in self . nodemap : if server in self . nodemap [ nodenum ] : self . nodemap_lock . release ( ) return self . nodemap [ nodenum ] . append ( server ) else : self . nodemap [ nodenum ] = [ server , ] if server in self . nodecounts : self . nodecounts [ server ] += 1 else : self . nodecounts [ server ] = 1 self . nodemap_lock . release ( )
Record a node number to emulation server mapping.
Record a node number to emulation server mapping .
''' Record a node number to emulation server mapping.
        '''
self
server
nodenum