Skip to content

Commit df37a80

Browse files
committed
Make print_syntax_err tunable writable
Signed-off-by: Mike Ponomarenko <[email protected]>
1 parent 6287bfa commit df37a80

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

db/db_tunables.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -974,10 +974,8 @@ REGISTER_TUNABLE("prefaulthelperthreads",
974974
"Max number of prefault helper threads. (Default: 0)",
975975
TUNABLE_INTEGER, &gbl_prefaulthelperthreads, READONLY, NULL,
976976
NULL, NULL, NULL);
977-
REGISTER_TUNABLE("print_syntax_err",
978-
"Trace all SQL with syntax errors. (Default: off)",
979-
TUNABLE_BOOLEAN, &gbl_print_syntax_err, READONLY | NOARG, NULL,
980-
NULL, NULL, NULL);
977+
REGISTER_TUNABLE("print_syntax_err", "Trace all SQL with syntax errors. (Default: off)", TUNABLE_BOOLEAN,
978+
&gbl_print_syntax_err, 0, NULL, NULL, NULL, NULL);
981979
REGISTER_TUNABLE("prioritize_queries",
982980
"Prioritize SQL queries based on loaded rulesets. "
983981
"(Default: off)", TUNABLE_BOOLEAN, &gbl_prioritize_queries,

tests/tunables.test/t00_all_tunables.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@
771771
(name='print_blockp_stats', description='print thread-count in block processor', type='BOOLEAN', value='OFF', read_only='N')
772772
(name='print_deadlock_cycles', description='Print every Nth deadlock cycle, set to 0 to turn off. (Default: 100)', type='INTEGER', value='100', read_only='N')
773773
(name='print_flush_log_msg', description='Produce trace when flushing log files.', type='BOOLEAN', value='OFF', read_only='N')
774-
(name='print_syntax_err', description='Trace all SQL with syntax errors. (Default: off)', type='BOOLEAN', value='OFF', read_only='Y')
774+
(name='print_syntax_err', description='Trace all SQL with syntax errors. (Default: off)', type='BOOLEAN', value='OFF', read_only='N')
775775
(name='private_blkseq', description='Keep a private blkseq', type='BOOLEAN', value='ON', read_only='N')
776776
(name='private_blkseq_cachesz', description='Cache size of the blkseq table.', type='INTEGER', value='4194304', read_only='N')
777777
(name='private_blkseq_close_warn_time', description='Warn when it takes longer than this many MS to roll a blkseq table.', type='BOOLEAN', value='ON', read_only='N')

0 commit comments

Comments
 (0)