Skip to content

Commit b72c1f7

Browse files
yjhjstzmy-ship-it
authored andcommitted
Enable fsync=on by default in gpAux/gpdemo/gpdemo-defaults.sh
Previously, fsync was set to off by default unless NUM_PRIMARY_MIRROR_PAIRS was zero or fsync was explicitly set to on. This change ensures that fsync is always on, improving data durability and consistency by default in the demo setup.
1 parent 34c08c8 commit b72c1f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gpAux/gpdemo/gpdemo-defaults.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [ "${NUM_PRIMARY_MIRROR_PAIRS}" -eq "0" ]; then
1616
BLDWRAP_POSTGRES_CONF_ADDONS="fsync=on ${BLDWRAP_POSTGRES_CONF_ADDONS}" # always enable fsync if singlenode
1717
fi
1818
if [[ ! ${BLDWRAP_POSTGRES_CONF_ADDONS} == *"fsync=on"* ]]; then
19-
BLDWRAP_POSTGRES_CONF_ADDONS="fsync=off ${BLDWRAP_POSTGRES_CONF_ADDONS}" # only append fsync=off if it doesn't contains fsync=on
19+
BLDWRAP_POSTGRES_CONF_ADDONS="fsync=on ${BLDWRAP_POSTGRES_CONF_ADDONS}" # always fsync=on
2020
else
2121
BLDWRAP_POSTGRES_CONF_ADDONS="${BLDWRAP_POSTGRES_CONF_ADDONS}"
2222
fi

0 commit comments

Comments
 (0)