From cd24cc83cf950317ad0dc98077d49356c979ef56 Mon Sep 17 00:00:00 2001 From: zhaowenhao <545612025@qq.com> Date: Thu, 31 Dec 2020 16:08:54 +0800 Subject: [PATCH] fix bug guc --- src/common/backend/utils/misc/guc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/backend/utils/misc/guc.cpp b/src/common/backend/utils/misc/guc.cpp index 6686aad04..21dad3e6d 100644 --- a/src/common/backend/utils/misc/guc.cpp +++ b/src/common/backend/utils/misc/guc.cpp @@ -18235,7 +18235,9 @@ int find_guc_option( opt_name, (targetline + 1)))); } - + if (matchtimes > 0) { + return targetline; + } /* The second loop is to deal with the lines commented by '#' */ matchtimes = 0; for (i = 0; optlines[i] != NULL; i++) {