These steps are run as needed by the steps to , which revert changes to the database including the set of associated and indexes, as well as the change to the .

    1. Let connection be transaction’s connection.

    2. Let database be connection’s .

    3. This reverts the value of returned by the [IDBDatabase](#idbdatabase) object.

      1. If handle’s object store was not newly created during transaction, set handle’s to its object store‘s .

      2. Set handle’s index set to the set of that reference its object store.

    1. This reverts the value of `[name](#dom-idbindex-name)` returned by related `[IDBIndex](#idbindex)` objects.