Watch out. When you do this, it repairs the Photos library as a matter of course, but it doesn't appear to rebuild thumbnail previews. That renders your library more or less useless. Can't say what happens when you have iCloud photos enabled. Does anyone know how to force Photos to rebuild thumbnails (apart from tediously applying an edit to every photo)?