How to repair the Photos library in Mac OS X Yosemite
Before performing a repair, it's best to make a backup of your library via Time Machine or by manually copying it to another location.

Before performing a repair, it's best to make a backup of your library via Time Machine or by manually copying it to another location. Once you've done that, follow these steps to recover your Photos library:
1. If opened, close the Photos app.
2. Relaunch the Photos app while holding the Command + Option keys.
3. The "Repair Library" dialog will appear asking if you'd like to repair the library.
4. Select "Repair."
After performing these steps, the Photos window will change to a "Repairing Library" view with a progress bar indicating the current state of repair. Depending on how much content you have in your library, this process can take quite a while as it rebuilds and repairs the library on your Mac.
This process will only repair the default Photos library on your Mac. If you have multiple libraries, you will need to switch to the one needing repair before performing these steps. To do so, open the Photos app while holding down the Option key and select the desired library.
The Economic Times Business News App for the Latest News in Business, Sensex, Stock Market Updates & More.
The Economic Times News App for Quarterly Results, Latest News in ITR, Business, Share Market, Live Sensex News & More.