Skip to content

Commit 26c861d

Browse files
committed
pebble: remove unnecessary set of ReportCorruptionFn
This param gets overwritten by the cached file reader. Remove setting this, as we also need to specify the corresponding argw henever this field is set. Resolves: #5343
1 parent 79e6b4a commit 26c861d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

blob_rewrite.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,8 @@ func (d *DB) runBlobFileRewriteLocked(
310310
bufferPool.Init(4, block.ForBlobFileRewrite)
311311
defer bufferPool.Release()
312312
env := block.ReadEnv{
313-
Stats: &c.internalIteratorStats,
314-
BufferPool: &bufferPool,
315-
ReportCorruptionFn: d.reportCorruption,
313+
Stats: &c.internalIteratorStats,
314+
BufferPool: &bufferPool,
316315
}
317316

318317
// Create a new file for the rewritten blob file.

0 commit comments

Comments
 (0)