Accumulate the docs in a map in the first phase of rollback