store/tikv: add log. (#3318)

This commit is contained in:
disksing
2017-05-24 12:44:26 +08:00
committed by Han Fei
parent 76ece8ec1f
commit aef9db4b3b

View File

@ -416,6 +416,8 @@ func (c *RegionCache) OnRequestFail(ctx *RPCContext) {
delete(c.storeMu.stores, storeID)
c.storeMu.Unlock()
log.Warnf("drop regions from cache due to request fail, storeID: %v", storeID)
c.mu.Lock()
for id, r := range c.mu.regions {
if r.peer.GetStoreId() == storeID {