Skip to content

Commit fa2a526

Browse files
bootjpCopilot
andauthored
Update store/mvcc_store.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a7e4364 commit fa2a526

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

store/mvcc_store.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ const (
3232
maxSnapshotVersionCount = 1 << 20 // 1M versions per key
3333
)
3434

35-
// maxSnapshotValueSize caps the allowed size of a single value during snapshot
36-
// restore and write paths to prevent OOM from malformed or adversarial snapshots.
35+
// maxSnapshotValueSize caps the allowed size of a single value during streaming
36+
// snapshot restore and write paths to prevent OOM from malformed or adversarial
37+
// snapshots. It does not apply to legacy gob-backed snapshot restore.
3738
// Declared as a var so tests can temporarily lower the limit without allocating
3839
// hundreds of MiB.
3940
var maxSnapshotValueSize = 256 << 20 // 256 MiB

0 commit comments

Comments
 (0)