def init_thread(i, r, d):
    """
    to initialise multithreaded worker
    """
    global indexes_count, reindexed_count, deleted_count
    indexes_count = i
    reindexed_count = r
    deleted_count = d
