(self, tables)
Counts and sanity checks.
Counts and sanity checks.
Counts and sanity checks .
def __init__(self, tables):
        """Counts and sanity checks."""
        for t in tables:
            if t.state == TABLE_MISSING:
                self.missing += 1
            elif t.state == TABLE_IN_COPY:
                self.copy += 1
            elif t.state == TABLE_CATCHING_UP:
                self.catching_up += 1
            elif t.state == TABLE_WANNA_SYNC:
                self.wanna_sync += 1
            elif t.state == TABLE_DO_SYNC:
                self.do_sync += 1
            elif t.state == TABLE_OK:
                self.ok += 1
def __init__ ( self , tables ) : for t in tables : if t . state == TABLE_MISSING : self . missing += 1 elif t . state == TABLE_IN_COPY : self . copy += 1 elif t . state == TABLE_CATCHING_UP : self . catching_up += 1 elif t . state == TABLE_WANNA_SYNC : self . wanna_sync += 1 elif t . state == TABLE_DO_SYNC : self . do_sync += 1 elif t . state == TABLE_OK : self . ok += 1