We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7e4364 commit fa2a526Copy full SHA for fa2a526
1 file changed
store/mvcc_store.go
@@ -32,8 +32,9 @@ const (
32
maxSnapshotVersionCount = 1 << 20 // 1M versions per key
33
)
34
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.
+// maxSnapshotValueSize caps the allowed size of a single value during streaming
+// snapshot restore and write paths to prevent OOM from malformed or adversarial
37
+// snapshots. It does not apply to legacy gob-backed snapshot restore.
38
// Declared as a var so tests can temporarily lower the limit without allocating
39
// hundreds of MiB.
40
var maxSnapshotValueSize = 256 << 20 // 256 MiB
0 commit comments