diff --git a/Gopkg.lock b/Gopkg.lock index a867d1e49f50..478d4e9b0458 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -143,11 +143,11 @@ [[projects]] branch = "master" - digest = "1:dfe2c5eadcbaf622a726116baf37582aa82fa8d364f05e168b58fbe96551832d" + digest = "1:caed868e37c6cda382a217d8ad4f55da579e1a1d046836de57f11a569e383443" name = "github.com/andy-kimball/arenaskl" packages = ["."] pruneopts = "UT" - revision = "224761e552afe64db9d93004f8d5d3a686b89771" + revision = "6bf06cf57626e536063e9398a57dfe1417ed0799" [[projects]] digest = "1:66b3310cf22cdc96c35ef84ede4f7b9b370971c4025f394c89a2638729653b11" diff --git a/pkg/storage/tscache/interval_skl_test.go b/pkg/storage/tscache/interval_skl_test.go index 713e70584cd6..13639f6eefcf 100644 --- a/pkg/storage/tscache/interval_skl_test.go +++ b/pkg/storage/tscache/interval_skl_test.go @@ -1218,10 +1218,10 @@ func BenchmarkIntervalSklAddAndLookup(b *testing.B) { rng := rand.New(rand.NewSource(timeutil.Now().UnixNano())) for n := 0; n < b.N/parallel; n++ { - readFrac := rng.Int31() + readFrac := rng.Int31n(10) keyNum := rng.Int31n(max) - if (readFrac % 10) < int32(i) { + if readFrac < int32(i) { key := []byte(fmt.Sprintf("%020d", keyNum)) s.LookupTimestamp(key) } else { diff --git a/vendor b/vendor index 33eeb37f6f67..2b619c3efb04 160000 --- a/vendor +++ b/vendor @@ -1 +1 @@ -Subproject commit 33eeb37f6f67ba330d5343ca2da83c8c25d6b974 +Subproject commit 2b619c3efb048f876d9ab26e45872bafb7099e5c