Update vendored libs
This commit is contained in:
2
vendor/github.com/cockroachdb/errors/README.md
generated
vendored
2
vendor/github.com/cockroachdb/errors/README.md
generated
vendored
@@ -87,7 +87,7 @@ older version of the package.
|
||||
| detail, eg `WithDetail()` | not visible | visible | no | type only |
|
||||
| assertion failure annotation, eg `WithAssertionFailure()` | not visible | visible | no | type only |
|
||||
| issue links, eg `WithIssueLink()`, `UnimplementedError()` | not visible | visible | yes | full |
|
||||
| safe details, eg `WithSafeDetails()` | not visible | not visible | yes | full |
|
||||
| safe details, eg `WithSafeDetails()` | not visible | visible | yes | full |
|
||||
| telemetry keys, eg. `WithTelemetryKey()` | not visible | visible | yes | full |
|
||||
| secondary errors, eg. `WithSecondaryError()`, `CombineErrors()` | not visible | visible | redacted, recursively | redacted, recursively |
|
||||
| barrier origins, eg. `Handled()` | not visible | visible | redacted, recursively | redacted, recursively |
|
||||
|
||||
11
vendor/github.com/cockroachdb/pebble/checkpoint.go
generated
vendored
11
vendor/github.com/cockroachdb/pebble/checkpoint.go
generated
vendored
@@ -88,23 +88,20 @@ func mkdirAllAndSyncParents(fs vfs.FS, destDir string) (vfs.File, error) {
|
||||
// Collect paths for all directories between destDir (excluded) and its
|
||||
// closest existing ancestor (included).
|
||||
var parentPaths []string
|
||||
foundExistingAncestor := false
|
||||
for parentPath := fs.PathDir(destDir); parentPath != "."; parentPath = fs.PathDir(parentPath) {
|
||||
for parentPath := fs.PathDir(destDir); ; parentPath = fs.PathDir(parentPath) {
|
||||
parentPaths = append(parentPaths, parentPath)
|
||||
if fs.PathDir(parentPath) == parentPath {
|
||||
break
|
||||
}
|
||||
_, err := fs.Stat(parentPath)
|
||||
if err == nil {
|
||||
// Exit loop at the closest existing ancestor.
|
||||
foundExistingAncestor = true
|
||||
break
|
||||
}
|
||||
if !oserror.IsNotExist(err) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
// Handle empty filesystem edge case.
|
||||
if !foundExistingAncestor {
|
||||
parentPaths = append(parentPaths, "")
|
||||
}
|
||||
// Create destDir and any of its missing parents.
|
||||
if err := fs.MkdirAll(destDir, 0755); err != nil {
|
||||
return nil, err
|
||||
|
||||
4
vendor/github.com/cockroachdb/pebble/internal/manual/manual_32bit.go
generated
vendored
4
vendor/github.com/cockroachdb/pebble/internal/manual/manual_32bit.go
generated
vendored
@@ -2,8 +2,8 @@
|
||||
// of this source code is governed by a BSD-style license that can be found in
|
||||
// the LICENSE file.
|
||||
|
||||
//go:build 386 || amd64p32 || arm || armbe || mips || mipsle || mips64p32 || mips64p32le || ppc || sparc
|
||||
// +build 386 amd64p32 arm armbe mips mipsle mips64p32 mips64p32le ppc sparc
|
||||
//go:build 386 || amd64p32 || arm || armbe || ppc || sparc
|
||||
// +build 386 amd64p32 arm armbe ppc sparc
|
||||
|
||||
package manual
|
||||
|
||||
|
||||
4
vendor/github.com/cockroachdb/pebble/internal/manual/manual_64bit.go
generated
vendored
4
vendor/github.com/cockroachdb/pebble/internal/manual/manual_64bit.go
generated
vendored
@@ -2,8 +2,8 @@
|
||||
// of this source code is governed by a BSD-style license that can be found in
|
||||
// the LICENSE file.
|
||||
|
||||
//go:build amd64 || arm64 || arm64be || ppc64 || ppc64le || mips64 || mips64le || s390x || sparc64 || riscv64
|
||||
// +build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le s390x sparc64 riscv64
|
||||
//go:build amd64 || arm64 || arm64be || ppc64 || ppc64le || mips64 || mips64le || s390x || sparc64 || riscv64 || loong64
|
||||
// +build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le s390x sparc64 riscv64 loong64
|
||||
|
||||
package manual
|
||||
|
||||
|
||||
13
vendor/github.com/cockroachdb/pebble/internal/manual/manual_mips.go
generated
vendored
Normal file
13
vendor/github.com/cockroachdb/pebble/internal/manual/manual_mips.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright 2020 The LevelDB-Go and Pebble Authors. All rights reserved. Use
|
||||
// of this source code is governed by a BSD-style license that can be found in
|
||||
// the LICENSE file.
|
||||
|
||||
//go:build mips || mipsle || mips64p32 || mips64p32le
|
||||
// +build mips mipsle mips64p32 mips64p32le
|
||||
|
||||
package manual
|
||||
|
||||
const (
|
||||
// MaxArrayLen is a safe maximum length for slices on this architecture.
|
||||
MaxArrayLen = 1 << 30
|
||||
)
|
||||
4
vendor/github.com/cockroachdb/pebble/internal/rawalloc/rawalloc_32bit.go
generated
vendored
4
vendor/github.com/cockroachdb/pebble/internal/rawalloc/rawalloc_32bit.go
generated
vendored
@@ -12,8 +12,8 @@
|
||||
// implied. See the License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
//go:build 386 || amd64p32 || arm || armbe || mips || mipsle || mips64p32 || mips64p32le || ppc || sparc
|
||||
// +build 386 amd64p32 arm armbe mips mipsle mips64p32 mips64p32le ppc sparc
|
||||
//go:build 386 || amd64p32 || arm || armbe || ppc || sparc
|
||||
// +build 386 amd64p32 arm armbe ppc sparc
|
||||
|
||||
package rawalloc
|
||||
|
||||
|
||||
4
vendor/github.com/cockroachdb/pebble/internal/rawalloc/rawalloc_64bit.go
generated
vendored
4
vendor/github.com/cockroachdb/pebble/internal/rawalloc/rawalloc_64bit.go
generated
vendored
@@ -12,8 +12,8 @@
|
||||
// implied. See the License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
//go:build amd64 || arm64 || arm64be || ppc64 || ppc64le || mips64 || mips64le || s390x || sparc64 || riscv64
|
||||
// +build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le s390x sparc64 riscv64
|
||||
//go:build amd64 || arm64 || arm64be || ppc64 || ppc64le || mips64 || mips64le || s390x || sparc64 || riscv64 || loong64
|
||||
// +build amd64 arm64 arm64be ppc64 ppc64le mips64 mips64le s390x sparc64 riscv64 loong64
|
||||
|
||||
package rawalloc
|
||||
|
||||
|
||||
22
vendor/github.com/cockroachdb/pebble/internal/rawalloc/rawalloc_mips.go
generated
vendored
Normal file
22
vendor/github.com/cockroachdb/pebble/internal/rawalloc/rawalloc_mips.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// Copyright 2014 The Cockroach Authors.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
// implied. See the License for the specific language governing
|
||||
// permissions and limitations under the License.
|
||||
|
||||
//go:build mips || mipsle || mips64p32 || mips64p32le
|
||||
// +build mips mipsle mips64p32 mips64p32le
|
||||
|
||||
package rawalloc
|
||||
|
||||
const (
|
||||
maxArrayLen = 1 << 30
|
||||
)
|
||||
3
vendor/github.com/cockroachdb/pebble/vfs/mem_fs.go
generated
vendored
3
vendor/github.com/cockroachdb/pebble/vfs/mem_fs.go
generated
vendored
@@ -164,6 +164,9 @@ func (y *MemFS) walk(fullname string, f func(dir *memNode, frag string, final bo
|
||||
for len(fullname) > 0 && fullname[0] == sep[0] {
|
||||
fullname = fullname[1:]
|
||||
}
|
||||
if fullname == "." {
|
||||
fullname = ""
|
||||
}
|
||||
dir := y.root
|
||||
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user