1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-30 06:45:32 +00:00

update vendor

This commit is contained in:
astaxie
2018-11-27 14:11:14 +08:00
parent d5fd5cad38
commit 6282747f6d
8 changed files with 65 additions and 98 deletions

View File

@@ -581,7 +581,9 @@ func (c *Client) GetBulk(vb uint16, keys []string, rv map[string]*gomemcached.MC
return
}
// continue receiving in case of KEY_ENOENT
} else if res.Opcode == gomemcached.GET {
} else if res.Opcode == gomemcached.GET ||
res.Opcode == gomemcached.SUBDOC_GET ||
res.Opcode == gomemcached.SUBDOC_MULTI_LOOKUP {
opaque := res.Opaque - opStart
if opaque < 0 || opaque >= uint32(len(keys)) {
// Every now and then we seem to be seeing an invalid opaque
@@ -598,12 +600,6 @@ func (c *Client) GetBulk(vb uint16, keys []string, rv map[string]*gomemcached.MC
if res.Opcode == gomemcached.NOOP {
ok = false
}
if res.Opcode == gomemcached.SUBDOC_GET || res.Opcode == gomemcached.SUBDOC_MULTI_LOOKUP {
opaque := res.Opaque - opStart
rv[keys[opaque]] = res
}
}
}
}()