youzan / ZanRedisDB

Yet another distributed fault-tolerant key-value database Compatible with Redis written in Golang.
MIT License
388 stars 60 forks source link

fix proposal while no leader and use glog #61

Closed absolute8511 closed 4 years ago

absolute8511 commented 4 years ago

1.avoid pre alloc slice too large in spop and range query 2.handle write batch clear

codecov[bot] commented 4 years ago

Codecov Report

Merging #61 into master will increase coverage by 0.10%. The diff coverage is 47.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #61      +/-   ##
==========================================
+ Coverage   46.28%   46.38%   +0.10%     
==========================================
  Files         160      160              
  Lines       25280    25317      +37     
==========================================
+ Hits        11700    11743      +43     
  Misses      11763    11763              
+ Partials     1817     1811       -6     
Impacted Files Coverage Δ
cluster/pdnode_coord/pd_api.go 0.00% <0.00%> (ø)
cluster/pdnode_coord/pd_learner_coord.go 0.00% <0.00%> (ø)
common/logger.go 0.00% <0.00%> (ø)
node/namespace.go 37.50% <0.00%> (ø)
node/node.go 31.42% <0.00%> (+0.49%) :arrow_up:
raft/node.go 69.43% <ø> (ø)
rockredis/t_collections.go 71.77% <ø> (ø)
server/httpapi.go 26.16% <0.00%> (+0.34%) :arrow_up:
transport/rafthttp/transport.go 48.38% <ø> (ø)
rockredis/rockredis.go 36.44% <36.36%> (+0.49%) :arrow_up:
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 22c1a78...0875c37. Read the comment docs.