From 41a4b7a1704c02a70f99bfc017380ef402b490b1 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Fri, 8 Apr 2022 12:07:21 -0700 Subject: [PATCH] Ensure initialMmapSize is 0 on Windows (#14977) * ensure initialMmapSize is 0 on windows * add changelog --- changelog/14977.txt | 3 +++ physical/raft/vars_32bit.go | 2 +- physical/raft/vars_64bit.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelog/14977.txt diff --git a/changelog/14977.txt b/changelog/14977.txt new file mode 100644 index 000000000..937c5d779 --- /dev/null +++ b/changelog/14977.txt @@ -0,0 +1,3 @@ +```release-note:bug +raft: Ensure initialMmapSize is set to 0 on Windows +``` diff --git a/physical/raft/vars_32bit.go b/physical/raft/vars_32bit.go index b232a02c8..c9662e796 100644 --- a/physical/raft/vars_32bit.go +++ b/physical/raft/vars_32bit.go @@ -1,4 +1,4 @@ -//go:build 386 || arm +//go:build 386 || arm || windows package raft diff --git a/physical/raft/vars_64bit.go b/physical/raft/vars_64bit.go index 890abfe50..40efb4c08 100644 --- a/physical/raft/vars_64bit.go +++ b/physical/raft/vars_64bit.go @@ -1,4 +1,4 @@ -//go:build !386 && !arm +//go:build !386 && !arm && !windows package raft