Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vendor: bump Pebble to d68c152233af #84051

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DEPS.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1431,10 +1431,10 @@ def go_deps():
patches = [
"@com_github_cockroachdb_cockroach//build/patches:com_github_cockroachdb_pebble.patch",
],
sha256 = "96e2df2aa4ea29c9ace25ceec92cca350f91bb8b189d7a80cea2c28a8a159e1b",
strip_prefix = "github.com/cockroachdb/[email protected]20220701152857-1f4dfe6f2a75",
sha256 = "1d37b28ca579f0d052ae51133945a47626dec63ceef0f07262aaedb033da1d25",
strip_prefix = "github.com/cockroachdb/[email protected]20220706210916-d68c152233af",
urls = [
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20220701152857-1f4dfe6f2a75.zip",
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20220706210916-d68c152233af.zip",
],
)
go_repository(
Expand Down
2 changes: 1 addition & 1 deletion build/bazelutil/distdir_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ DISTDIR_FILES = {
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/go-test-teamcity/com_github_cockroachdb_go_test_teamcity-v0.0.0-20191211140407-cff980ad0a55.zip": "bac30148e525b79d004da84d16453ddd2d5cd20528e9187f1d7dac708335674b",
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/gostdlib/com_github_cockroachdb_gostdlib-v1.13.0.zip": "b3d43d8f95edf65f73a5348f29e1159823cac64b148f8d3bb48340bf55d70872",
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/logtags/com_github_cockroachdb_logtags-v0.0.0-20211118104740-dabe8e521a4f.zip": "1972c3f171f118add3fd9e64bcea6cbb9959a3b7fa0ada308e8a7310813fea74",
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20220701152857-1f4dfe6f2a75.zip": "96e2df2aa4ea29c9ace25ceec92cca350f91bb8b189d7a80cea2c28a8a159e1b",
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20220706210916-d68c152233af.zip": "1d37b28ca579f0d052ae51133945a47626dec63ceef0f07262aaedb033da1d25",
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/redact/com_github_cockroachdb_redact-v1.1.3.zip": "7778b1e4485e4f17f35e5e592d87eb99c29e173ac9507801d000ad76dd0c261e",
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/returncheck/com_github_cockroachdb_returncheck-v0.0.0-20200612231554-92cdbca611dd.zip": "ce92ba4352deec995b1f2eecf16eba7f5d51f5aa245a1c362dfe24c83d31f82b",
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/sentry-go/com_github_cockroachdb_sentry_go-v0.6.1-cockroachdb.2.zip": "fbb2207d02aecfdd411b1357efe1192dbb827959e36b7cab7491731ac55935c9",
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ require (
github.com/cockroachdb/go-test-teamcity v0.0.0-20191211140407-cff980ad0a55
github.com/cockroachdb/gostdlib v1.13.0
github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f
github.com/cockroachdb/pebble v0.0.0-20220701152857-1f4dfe6f2a75
github.com/cockroachdb/pebble v0.0.0-20220706210916-d68c152233af
github.com/cockroachdb/redact v1.1.3
github.com/cockroachdb/returncheck v0.0.0-20200612231554-92cdbca611dd
github.com/cockroachdb/stress v0.0.0-20220310203902-58fb4627376e
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ github.com/cockroachdb/gostdlib v1.13.0/go.mod h1:eXX95p9QDrYwJfJ6AgeN9QnRa/lqqi
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI=
github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f h1:6jduT9Hfc0njg5jJ1DdKCFPdMBrp/mdZfCpa5h+WM74=
github.com/cockroachdb/logtags v0.0.0-20211118104740-dabe8e521a4f/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
github.com/cockroachdb/pebble v0.0.0-20220701152857-1f4dfe6f2a75 h1:VsErbz7DUVGTkXOvJiKWmfDPCey1JO14ARExJtXmBCo=
github.com/cockroachdb/pebble v0.0.0-20220701152857-1f4dfe6f2a75/go.mod h1:pr479tNxFRmcfDyklTqoRMDDVmRlEbL+d7a7rhKnrI4=
github.com/cockroachdb/pebble v0.0.0-20220706210916-d68c152233af h1:N+92y/jD6W4An7/SHHscbSpBru3dg5AB5xQ+XwG6o9Y=
github.com/cockroachdb/pebble v0.0.0-20220706210916-d68c152233af/go.mod h1:pr479tNxFRmcfDyklTqoRMDDVmRlEbL+d7a7rhKnrI4=
github.com/cockroachdb/redact v1.0.8/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
github.com/cockroachdb/redact v1.1.3 h1:AKZds10rFSIj7qADf0g46UixK8NNLwWTNdCIGS5wfSQ=
github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
Expand Down
8 changes: 4 additions & 4 deletions pkg/storage/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ func (p *Pebble) ClearMVCCRangeKey(rangeKey MVCCRangeKey) error {
if err := rangeKey.Validate(); err != nil {
return err
}
return p.db.Experimental().RangeKeyUnset(
return p.db.RangeKeyUnset(
EncodeMVCCKeyPrefix(rangeKey.StartKey),
EncodeMVCCKeyPrefix(rangeKey.EndKey),
EncodeMVCCTimestampSuffix(rangeKey.Timestamp),
Expand Down Expand Up @@ -1199,7 +1199,7 @@ func (p *Pebble) ClearAllRangeKeys(start, end roachpb.Key) error {
} else if clearFrom == nil || clearTo == nil {
return nil
}
return p.db.Experimental().RangeKeyDelete(clearFrom, clearTo, pebble.Sync)
return p.db.RangeKeyDelete(clearFrom, clearTo, pebble.Sync)
}

// PutMVCCRangeKey implements the Engine interface.
Expand All @@ -1219,7 +1219,7 @@ func (p *Pebble) PutMVCCRangeKey(rangeKey MVCCRangeKey, value MVCCValue) error {
if err != nil {
return errors.Wrapf(err, "failed to encode MVCC value for range key %s", rangeKey)
}
return p.db.Experimental().RangeKeySet(
return p.db.RangeKeySet(
EncodeMVCCKeyPrefix(rangeKey.StartKey),
EncodeMVCCKeyPrefix(rangeKey.EndKey),
EncodeMVCCTimestampSuffix(rangeKey.Timestamp),
Expand Down Expand Up @@ -1293,7 +1293,7 @@ func (p *Pebble) PutEngineRangeKey(start, end roachpb.Key, suffix, value []byte)
if err := rangeKey.Validate(); err != nil {
return err
}
return p.db.Experimental().RangeKeySet(
return p.db.RangeKeySet(
EngineKey{Key: start}.Encode(),
EngineKey{Key: end}.Encode(),
suffix,
Expand Down
8 changes: 4 additions & 4 deletions pkg/storage/pebble_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func (p *pebbleBatch) ClearMVCCRangeKey(rangeKey MVCCRangeKey) error {
if err := rangeKey.Validate(); err != nil {
return err
}
return p.batch.Experimental().RangeKeyUnset(
return p.batch.RangeKeyUnset(
EncodeMVCCKeyPrefix(rangeKey.StartKey),
EncodeMVCCKeyPrefix(rangeKey.EndKey),
EncodeMVCCTimestampSuffix(rangeKey.Timestamp),
Expand Down Expand Up @@ -455,7 +455,7 @@ func (p *pebbleBatch) ClearAllRangeKeys(start, end roachpb.Key) error {
return nil
}
}
return p.batch.Experimental().RangeKeyDelete(clearFrom, clearTo, nil)
return p.batch.RangeKeyDelete(clearFrom, clearTo, nil)
}

// PutMVCCRangeKey implements the Batch interface.
Expand All @@ -475,7 +475,7 @@ func (p *pebbleBatch) PutMVCCRangeKey(rangeKey MVCCRangeKey, value MVCCValue) er
if err != nil {
return errors.Wrapf(err, "failed to encode MVCC value for range key %s", rangeKey)
}
if err := p.batch.Experimental().RangeKeySet(
if err := p.batch.RangeKeySet(
EncodeMVCCKeyPrefix(rangeKey.StartKey),
EncodeMVCCKeyPrefix(rangeKey.EndKey),
EncodeMVCCTimestampSuffix(rangeKey.Timestamp),
Expand All @@ -498,7 +498,7 @@ func (p *pebbleBatch) PutEngineRangeKey(start, end roachpb.Key, suffix, value []
if err := rangeKey.Validate(); err != nil {
return err
}
if err := p.batch.Experimental().RangeKeySet(
if err := p.batch.RangeKeySet(
EngineKey{Key: start}.Encode(),
EngineKey{Key: end}.Encode(),
suffix,
Expand Down