index: update index-out-of-sync error message to suggest camlistored --reindex

Change-Id: I17dcd758e49a25c05ab5519a49ed3832610d2ba0
This commit is contained in:
Brad Fitzpatrick 2013-12-24 15:46:17 -08:00
parent 7728d7e2f8
commit e6496b45d8
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ func New(s sorted.KeyValue) *Index {
// the user with a more useful tip:
tip = `(For the dev server, run "devcam server --wipe" to wipe both your blobs and index)`
} else {
tip = "See 'camtool dbinit' (or just delete the file for a file based index), and then 'camtool sync --all'"
tip = "Run 'camlistored --reindex' (it might take awhile, but shows status). Alternative: 'camtool dbinit' (or just delete the file for a file based index), and then 'camtool sync --all'"
}
log.Fatalf("index schema version is %d; required one is %d. You need to reindex. %s",
schemaVersion, requiredSchemaVersion, tip)