returnnil,fmt.Errorf("cannot parse content of %s: %s",versionPath,data[:n])
}elseifpersistedVersion!=Version{
}elseifpersistedVersion!=Version{
returnnil,fmt.Errorf("found storage version %d on disk, need version %d - please wipe storage or run a version of Prometheus compatible with storage version %d",persistedVersion,Version,persistedVersion)
returnnil,fmt.Errorf("found storage version %d on disk, need version %d - please wipe storage or run a version of Prometheus compatible with storage version %d",persistedVersion,Version,persistedVersion)
returnnil,fmt.Errorf("could not detect storage version on disk, assuming version 0, need version %d - please wipe storage or run a version of Prometheus compatible with storage version 0",Version)
returnnil,fmt.Errorf("could not detect storage version on disk, assuming version 0, need version %d - please wipe storage or run a version of Prometheus compatible with storage version 0",Version)
}
}
// Finally we can write our own version into a new version file.
// Finally we can write our own version into a new version file.