mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
rebase: use the go-ceph master branch
The main change that is useful, is the new rbd.ErrExist error. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
10076ca11f
commit
9267210da4
6
vendor/github.com/ceph/go-ceph/rados/watcher.go
generated
vendored
6
vendor/github.com/ceph/go-ceph/rados/watcher.go
generated
vendored
@ -298,11 +298,11 @@ func (c *Conn) WatcherFlush() error {
|
||||
//
|
||||
// NOTE: starting with pacific this is implemented as a C function and this can
|
||||
// be replaced later
|
||||
func decodeNotifyResponse(response *C.char, len C.size_t) ([]NotifyAck, []NotifyTimeout) {
|
||||
if len == 0 || response == nil {
|
||||
func decodeNotifyResponse(response *C.char, length C.size_t) ([]NotifyAck, []NotifyTimeout) {
|
||||
if length == 0 || response == nil {
|
||||
return nil, nil
|
||||
}
|
||||
b := (*[math.MaxInt32]byte)(unsafe.Pointer(response))[:len:len]
|
||||
b := (*[math.MaxInt32]byte)(unsafe.Pointer(response))[:length:length]
|
||||
pos := 0
|
||||
|
||||
num := binary.LittleEndian.Uint32(b[pos:])
|
||||
|
Reference in New Issue
Block a user