server: add experimental flag for using shared buffer in transacton write

This commit is contained in:
Wilson Wang
2021-05-04 10:11:40 -07:00
parent 56154216b7
commit 98083ea914
6 changed files with 65 additions and 53 deletions

View File

@@ -177,6 +177,10 @@ type ServerConfig struct {
// Currently all etcd memory gets mlocked, but in future the flag can
// be refined to mlock in-use area of bbolt only.
ExperimentalMemoryMlock bool `json:"experimental-memory-mlock"`
// ExperimentalTxnModeWriteWithSharedBuffer enable write transaction to use
// a shared buffer in its readonly check operations.
ExperimentalTxnModeWriteWithSharedBuffer bool `json:"experimental-txn-mode-write-with-shared-buffer"`
}
// VerifyBootstrap sanity-checks the initial config for bootstrap case