Skip to content

Commit

Permalink
fix: remove 0 length check in pebble (#23157)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle authored Jan 2, 2025
1 parent 87c7e5e commit 3d544c1
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 442 deletions.
6 changes: 0 additions & 6 deletions store/v2/commitment/store_bench_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build rocksdb
// +build rocksdb

package commitment_test

import (
Expand All @@ -20,9 +17,6 @@ import (
var (
storeKeys = []string{"store1", "store2", "store3"}
dbBackends = map[string]func(dataDir string) (corestore.KVStoreWithBatch, error){
"rocksdb_opts": func(dataDir string) (corestore.KVStoreWithBatch, error) {
return dbm.NewRocksDB("test", dataDir)
},
"pebbledb_opts": func(dataDir string) (corestore.KVStoreWithBatch, error) {
return dbm.NewPebbleDB("test", dataDir)
},
Expand Down
1 change: 0 additions & 1 deletion store/v2/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ type DBType string

const (
DBTypeGoLevelDB DBType = "goleveldb"
DBTypeRocksDB DBType = "rocksdb"
DBTypePebbleDB DBType = "pebbledb"
DBTypePrefixDB DBType = "prefixdb"

Expand Down
4 changes: 0 additions & 4 deletions store/v2/db/pebbledb.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ func (db *PebbleDB) Get(key []byte) ([]byte, error) {
return nil, fmt.Errorf("failed to perform PebbleDB read: %w", err)
}

if len(bz) == 0 {
return nil, closer.Close()
}

return bz, closer.Close()
}

Expand Down
348 changes: 0 additions & 348 deletions store/v2/db/rocksdb.go

This file was deleted.

Loading

0 comments on commit 3d544c1

Please sign in to comment.