mirror of https://github.com/perkeep/perkeep.git
Merge "pkg/index: move reindex success msg to later"
This commit is contained in:
commit
d423b811be
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue