Feature 1.4 (#61)

* bugfix: add metric in restore (#59)

* Bugfix 1.4.3 (#60)

* bugfix: add metric in restore

* add ChangeLog
v4
Vinllen Chen 5 years ago committed by GitHub
parent 2efa7bac71
commit 3428062f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ChangeLog
  2. 8
      src/redis-shake/metric/variables.go
  3. 2
      src/redis-shake/restore.go

@ -3,6 +3,9 @@
* FEATURE: source address supports cluster.
* FEATURE: target address supports several proxies to write data in
a round-robin way.
2019-05-11 Alibaba Cloud.
* VERSION: 1.4.3
* BUGFIX: add add metric in restore mode.
2019-04-24 Alibaba Cloud.
* VERSION: 1.4.2
* IMPROVE: improve rump to support fetching data from given keys in

@ -34,6 +34,14 @@ type MetricRest struct {
func NewMetricRest() []MetricRest {
detailMapList := runner.GetDetailedInfo().([]map[string]interface{})
if detailMapList == nil || len(detailMapList) == 0 {
return []{
MetricRest{
StartTime: utils.StartTime,
Status: base.Status,
},
}
}
total := utils.GetTotalLink()
ret := make([]MetricRest, total)

@ -9,13 +9,13 @@ import (
"fmt"
"io/ioutil"
"time"
"strconv"
"pkg/libs/atomic2"
"pkg/libs/log"
"pkg/redis"
"redis-shake/configure"
"redis-shake/common"
"strconv"
"redis-shake/base"
"sync"
)

Loading…
Cancel
Save