Merge "Restore method to delete a change from the index synchronously"

This commit is contained in:
Dave Borowitz
2016-03-09 18:29:26 +00:00
committed by Gerrit Code Review

View File

@@ -184,6 +184,15 @@ public class ChangeIndexer {
: Futures.<Object, IOException> immediateCheckedFuture(null);
}
/**
* Synchronously delete a change.
*
* @param id change ID to delete.
*/
public void delete(Change.Id id) throws IOException {
new DeleteTask(id).call();
}
private Collection<ChangeIndex> getWriteIndexes() {
return indexes != null
? indexes.getWriteIndexes()