From d2af45e3fbd3a6b59e435e24ddd6b8118bd08b2b Mon Sep 17 00:00:00 2001 From: Vojtech Vitek Date: Tue, 17 Apr 2018 10:13:38 -0400 Subject: [PATCH] Add server.ledisdb_version to the INFO command (#343) --- server/info.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/info.go b/server/info.go index c93fb34..fd7e78f 100644 --- a/server/info.go +++ b/server/info.go @@ -11,6 +11,7 @@ import ( "time" "github.com/siddontang/go/sync2" + "github.com/siddontang/ledisdb/ledis" ) type info struct { @@ -109,6 +110,7 @@ func (i *info) dumpServer(buf *bytes.Buffer) { infoPair{"goroutine_num", runtime.NumGoroutine()}, infoPair{"cgo_call_num", runtime.NumCgoCall()}, infoPair{"resp_client_num", i.app.respClientNum()}, + infoPair{"ledisdb_version", ledis.Version}, ) }