def nextLogStashIndex(start_date, end_date):

    yield "logstash-" + start_date.strftime("%Y.%m.%d")

    one_day = timedelta(days=1)
    while True:
        start_date = start_date + one_day
        if start_date > end_date:
            break

        yield "logstash-" + start_date.strftime("%Y.%m.%d")
Rolls back a transaction and resets the dirty flag.
dataset/ETHPy150Open prelert/engine-python/elk_connector/elk_connector.py/nextLogStashIndex--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/transaction.py/rollback