set and persist comitted index