We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6c4627 commit 81662feCopy full SHA for 81662fe
core/rawdb/table.go
@@ -131,6 +131,8 @@ func (t *table) Compact(start []byte, limit []byte) error {
131
// If no start was specified, use the table prefix as the first value
132
if start == nil {
133
start = []byte(t.prefix)
134
+ } else {
135
+ start = append([]byte(t.prefix), start...)
136
}
137
// If no limit was specified, use the first element not matching the prefix
138
// as the limit
@@ -147,6 +149,8 @@ func (t *table) Compact(start []byte, limit []byte) error {
147
149
limit = nil
148
150
151
152
153
+ limit = append([]byte(t.prefix), limit...)
154
155
// Range correctly calculated based on table prefix, delegate down
156
return t.db.Compact(start, limit)
0 commit comments