def METHOD_NAME(fname):
    global LAST_SQL_UUID
    global LAST_COMMIT_UUID
    global ADDAX_JOBDICT
    global ADDAX_JOBDICT_COMMIT
    global UNIXTIME
    LAST_SQL_UUID = ''
    ADDAX_JOBDICT = {}
    LAST_COMMIT_UUID = ''
    ADDAX_JOBDICT_COMMIT = {}
    UNIXTIME = int(time.time())
    with open(fname, 'r') as f:
        for line in f.readlines():
            line = line.strip()
            if (LAST_SQL_UUID and (LAST_SQL_UUID in ADDAX_JOBDICT)):
                ADDAX_JOBDICT[LAST_SQL_UUID]['host'] = parse_query_host(line)
                LAST_SQL_UUID = ''
            if line.find('CommonRdbmsReader$Task') > 0:
                parse_read_task(line)
            elif line.find('commit blocks') > 0:
                parse_write_task(line)
            else:
                continue