!513 replication_type is only allowed set to 1, to resolve core dump in data send when primary is 1 or 2, and standby is 0

Merge pull request !513 from 熊小军/master_1112
This commit is contained in:
opengauss-bot 2020-12-28 20:33:12 +08:00 committed by Gitee
commit 5b120e7331
2 changed files with 5 additions and 2 deletions

View File

@ -6724,7 +6724,7 @@ static void init_configure_names_int()
NULL
},
&g_instance.attr.attr_storage.replication_type,
RT_WITH_DUMMY_STANDBY,
RT_WITH_MULTI_STNADBY,
RT_WITH_DUMMY_STANDBY,
RT_NUM,
check_replication_type,
@ -21237,6 +21237,9 @@ static bool check_replication_type(int* newval, void** extra, GucSource source)
errmsg("replication_type is not allowed set 1 "
"in Current Version. Set to default (0).")));
}
} else {
ereport(FATAL, (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("replication_type is only allowed set to 1, newval=%d.", *newval)));
}
return true;
}

View File

@ -23,7 +23,7 @@ SELECT name, setting FROM pg_settings WHERE name LIKE 'enable%' ORDER BY name;
enable_codegen_print | off
enable_compress_spill | on
enable_copy_server_files | off
enable_data_replicate | on
enable_data_replicate | off
enable_debug_vacuum | off
enable_delta_store | off
enable_double_write | on