Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d90fbd7

Browse files
committedApr 5, 2025·
WIP on buffer size validation against raft command size
1 parent eb6a879 commit d90fbd7

File tree

1 file changed

+2
-0
lines changed
  • pkg/kv/kvserver/kvserverbase

1 file changed

+2
-0
lines changed
 

‎pkg/kv/kvserver/kvserverbase/base.go

+2
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ const (
310310
)
311311

312312
// MaxCommandSize wraps "kv.raft.command.max_size".
313+
// TODO: maybe add validation on the buffer size that it's below raft command
314+
// size and in reverse?
313315
var MaxCommandSize = settings.RegisterByteSizeSetting(
314316
settings.SystemVisible, // used by SQL/bulk to determine mutation batch sizes
315317
"kv.raft.command.max_size",

0 commit comments

Comments
 (0)
Please sign in to comment.