-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cockroach 22.1.5 (now with stdmalloc)
- Loading branch information
1 parent
c2de903
commit 7c127f7
Showing
287 changed files
with
305 additions
and
39,673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/src/github.com/cockroachdb/cockroach/Makefile | ||
+++ b/src/github.com/cockroachdb/cockroach/Makefile | ||
@@ -163,7 +163,7 @@ DESTDIR := | ||
|
||
DUPLFLAGS := -t 100 | ||
GOFLAGS := | ||
-TAGS := | ||
+TAGS := stdmalloc | ||
ARCHIVE := cockroach.src.tgz | ||
STARTFLAGS := -s type=mem,size=1GiB --logtostderr | ||
BUILDTARGET := ./pkg/cmd/cockroach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- a/src/github.com/cockroachdb/cockroach/vendor/github.com/cockroachdb/pebble/vfs/errors_unix.go Fri Aug 19 10:55:44 2022 | ||
+++ b/src/github.com/cockroachdb/cockroach/vendor/github.com/cockroachdb/pebble/vfs/errors_unix.go Fri Aug 19 10:55:44 2022 | ||
@@ -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 darwin || dragonfly || freebsd || linux || openbsd | ||
-// +build darwin dragonfly freebsd linux openbsd | ||
+//go:build darwin || dragonfly || freebsd || linux || openbsd || illumos | ||
+// +build darwin dragonfly freebsd linux openbsd illumos | ||
|
||
package vfs | ||
|
||
--- /dev/null Fri Aug 19 10:52:18 2022 | ||
+++ b/src/github.com/cockroachdb/cockroach/vendor/github.com/cockroachdb/pebble/vfs/disk_usage_illumos.go Wed Aug 17 15:09:39 2022 | ||
@@ -0,0 +1,25 @@ | ||
+// 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. | ||
+ | ||
+// +build illumos | ||
+ | ||
+package vfs | ||
+ | ||
+import "golang.org/x/sys/unix" | ||
+ | ||
+func (defaultFS) GetDiskUsage(path string) (DiskUsage, error) { | ||
+ stat := unix.Statvfs_t{} | ||
+ if err := unix.Statvfs(path, &stat); err != nil { | ||
+ return DiskUsage{}, err | ||
+ } | ||
+ | ||
+ freeBytes := uint64(stat.Bsize) * uint64(stat.Bfree) | ||
+ availBytes := uint64(stat.Bsize) * uint64(stat.Bavail) | ||
+ totalBytes := uint64(stat.Bsize) * uint64(stat.Blocks) | ||
+ return DiskUsage{ | ||
+ AvailBytes: availBytes, | ||
+ TotalBytes: totalBytes, | ||
+ UsedBytes: totalBytes - freeBytes, | ||
+ }, nil | ||
+} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff -ur cache/gopath/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/strtime/strptime.c patches/github.com/knz/strtime//strptime.c | ||
--- a/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/strtime/strptime.c Fri Aug 19 09:57:34 2022 | ||
+++ b/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/strtime/strptime.c Fri Aug 19 09:57:34 2022 | ||
@@ -59,6 +59,9 @@ | ||
// #include "libc_private.h" | ||
#include "timelocal.h" | ||
// #include "tzfile.h" | ||
+#ifdef __sun | ||
+#include <alloca.h> | ||
+#endif | ||
|
||
static char * _strptime(const char *, const char *, struct mytm *, int *, locale_t); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- a/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/go-libedit/editline_other.go Fri Aug 19 11:16:49 2022 | ||
+++ b/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/go-libedit/editline_other.go Fri Aug 19 11:16:49 2022 | ||
@@ -12,7 +12,7 @@ | ||
// implied. See the License for the specific language governing | ||
// permissions and limitations under the License. | ||
|
||
-// +build !darwin,!freebsd,!linux,!openbsd,!netbsd,!dragonfly | ||
+// +build !darwin,!freebsd,!illumos,!linux,!openbsd,!netbsd,!dragonfly | ||
|
||
package libedit | ||
|
||
--- a/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/go-libedit/editline_unix.go Fri Aug 19 11:16:49 2022 | ||
+++ b/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/go-libedit/editline_unix.go Fri Aug 19 11:16:49 2022 | ||
@@ -12,7 +12,7 @@ | ||
// implied. See the License for the specific language governing | ||
// permissions and limitations under the License. | ||
|
||
-// +build darwin freebsd linux openbsd netbsd dragonfly | ||
+// +build darwin freebsd illumos linux openbsd netbsd dragonfly | ||
|
||
package libedit | ||
|
||
--- a/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/go-libedit/unix/editline_unix.go Fri Aug 19 11:16:49 2022 | ||
+++ b/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/go-libedit/unix/editline_unix.go Fri Aug 19 11:16:49 2022 | ||
@@ -25,8 +25,8 @@ | ||
common "github.com/knz/go-libedit/common" | ||
) | ||
|
||
-// #cgo openbsd netbsd freebsd dragonfly darwin LDFLAGS: -ledit | ||
-// #cgo openbsd netbsd freebsd dragonfly darwin CPPFLAGS: -Ishim | ||
+// #cgo openbsd netbsd illumos freebsd dragonfly darwin LDFLAGS: -ledit | ||
+// #cgo openbsd netbsd illumos freebsd dragonfly darwin CPPFLAGS: -Ishim | ||
// #cgo linux LDFLAGS: -lncurses | ||
// #cgo linux CFLAGS: -Wno-unused-result -Wno-pointer-sign | ||
// #cgo linux CPPFLAGS: -Isrc -Isrc/c-libedit -Isrc/c-libedit/editline -Isrc/c-libedit/linux-build -D_GNU_SOURCE | ||
|
Oops, something went wrong.