From 3566e1de738827ce78f70950c751152830f90ea3 Mon Sep 17 00:00:00 2001 From: disksing Date: Thu, 31 Aug 2017 14:09:02 +0800 Subject: [PATCH] *: add release version. --- server/util.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server/util.go b/server/util.go index 19accee253f..d498a0ba25b 100644 --- a/server/util.go +++ b/server/util.go @@ -48,15 +48,16 @@ const ( // Version information. var ( - PDBuildTS = "None" - PDGitHash = "None" - PDGitBranch = "None" + PDReleaseVersion = "0.9.0" + PDBuildTS = "None" + PDGitHash = "None" + PDGitBranch = "None" ) // LogPDInfo prints the PD version information. func LogPDInfo() { log.Infof("Welcome to Placement Driver (PD).") - log.Infof("Version:") + log.Infof("Release Version: %s", PDReleaseVersion) log.Infof("Git Commit Hash: %s", PDGitHash) log.Infof("Git Branch: %s", PDGitBranch) log.Infof("UTC Build Time: %s", PDBuildTS) @@ -64,6 +65,7 @@ func LogPDInfo() { // PrintPDInfo prints the PD version information without log info. func PrintPDInfo() { + fmt.Println("Release Version:", PDReleaseVersion) fmt.Println("Git Commit Hash:", PDGitHash) fmt.Println("Git Branch:", PDGitBranch) fmt.Println("UTC Build Time: ", PDBuildTS)