def _VerifyStateDatabase(self):
    rows = self._db.ExecuteOrDie(
        'SELECT Checksum, Size, Offset FROM %s.%s WHERE Filename = "%s"' %
        (self._state_database, self._state_table, self._filename))

    if not rows:
      logging.info('Creating row in state table')
      with self._db.Transaction():
        self._db.ExecuteOrDie(
            'INSERT INTO %s.%s VALUES ("%s", %d, "%s", 0, NULL)' %
            (self._state_database, self._state_table, self._filename,
             self._size, self._checksum))
    else:
      if self._size != long(rows[0]['Size']):
        logging.fatal('database filesize does not match actual file: %s vs %s',
                      self._size, rows[0]['Size'])
      if self._checksum != rows[0]['Checksum']:
        logging.fatal('SHA-1 checksum mismatch on file vs database')
      self._offset_bytes = rows[0]['Offset']
      logging.info('Resuming at offset %d', self._offset_bytes)
Generates a new configuration reached by translating the current
dataset/ETHPy150Open google/mysql-tools/trickle_file_runner.py/DbFileTrickler._VerifyStateDatabase--crossover with--dataset/ETHPy150Open rlpy/rlpy/rlpy/Domains/PacmanPackage/game.py/Configuration.generateSuccessor