Merge "pkg/index: move reindex success msg to later"

This commit is contained in:
Brad Fitzpatrick 2017-12-30 17:12:46 +00:00 committed by Gerrit Code Review
commit d423b811be
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,6 @@ func (x *Index) Reindex() error {
return fmt.Errorf("%d blobs are still needed as dependencies", needed)
}
log.Printf("Index rebuild complete.")
nerrmu.Lock() // no need to unlock
if nerr != 0 {
return fmt.Errorf("%d blobs failed to re-index", nerr)
@ -477,6 +476,7 @@ func (x *Index) Reindex() error {
if err := x.initDeletesCache(); err != nil {
return err
}
log.Printf("Index rebuild complete.")
return nil
}