@@ -5200,6 +5200,22 @@ static Sys_var_mybool Sys_encrypt_tmp_files(
5200
5200
READ_ONLY GLOBAL_VAR(encrypt_tmp_files),
5201
5201
CMD_LINE(OPT_ARG), DEFAULT(TRUE));
5202
5202
5203
+ static const char *binlog_row_image_names[]= {"MINIMAL", "NOBLOB", "FULL", NullS};
5204
+ static Sys_var_enum Sys_binlog_row_image(
5205
+ "binlog_row_image",
5206
+ "Controls whether rows should be logged in 'FULL', 'NOBLOB' or "
5207
+ "'MINIMAL' formats. 'FULL', means that all columns in the before "
5208
+ "and after image are logged. 'NOBLOB', means that mysqld avoids logging "
5209
+ "blob columns whenever possible (eg, blob column was not changed or "
5210
+ "is not part of primary key). 'MINIMAL', means that a PK equivalent (PK "
5211
+ "columns or full row if there is no PK in the table) is logged in the "
5212
+ "before image, and only changed columns are logged in the after image. "
5213
+ "(Default: FULL).",
5214
+ SESSION_VAR(binlog_row_image), CMD_LINE(REQUIRED_ARG),
5215
+ binlog_row_image_names, DEFAULT(BINLOG_ROW_IMAGE_FULL),
5216
+ NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL),
5217
+ ON_UPDATE(NULL));
5218
+
5203
5219
static bool check_pseudo_slave_mode(sys_var *self, THD *thd, set_var *var)
5204
5220
{
5205
5221
longlong previous_val= thd->variables.pseudo_slave_mode;
0 commit comments