wrapping index repair operations in transactions