(self, curs)
Load part/slot info from database.
Load part/slot info from database.
Load part / slot info from database .
def load_shard_info(self, curs):
        """Load part/slot info from database."""
        q = "select part_nr, max_part from partconf.conf"
        curs.execute(q)
        self.shard_nr, self.hash_mask = curs.fetchone()
        if self.shard_nr is None or self.hash_mask is None:
            raise Exception('Error loading shard info')
def load_shard_info ( self , curs ) : q = "select part_nr, max_part from partconf.conf" curs . execute ( q ) self . shard_nr , self . hash_mask = curs . fetchone ( ) if self . shard_nr is None or self . hash_mask is None : raise Exception ( 'Error loading shard info' )