Add server.ledisdb_version to the INFO command (#343)

This commit is contained in:
Vojtech Vitek 2018-04-17 10:13:38 -04:00 committed by siddontang
parent ee6de4500f
commit d2af45e3fb
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import (
"time" "time"
"github.com/siddontang/go/sync2" "github.com/siddontang/go/sync2"
"github.com/siddontang/ledisdb/ledis"
) )
type info struct { type info struct {
@ -109,6 +110,7 @@ func (i *info) dumpServer(buf *bytes.Buffer) {
infoPair{"goroutine_num", runtime.NumGoroutine()}, infoPair{"goroutine_num", runtime.NumGoroutine()},
infoPair{"cgo_call_num", runtime.NumCgoCall()}, infoPair{"cgo_call_num", runtime.NumCgoCall()},
infoPair{"resp_client_num", i.app.respClientNum()}, infoPair{"resp_client_num", i.app.respClientNum()},
infoPair{"ledisdb_version", ledis.Version},
) )
} }