Commit 86b06a0e authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: simplify nested multiline ?(?:(?:)):

parent 7b54dec1
...@@ -3445,17 +3445,18 @@ bool MYSQL_BIN_LOG::open(const char *log_name, ...@@ -3445,17 +3445,18 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
*/ */
if (io_cache_type == WRITE_CACHE) if (io_cache_type == WRITE_CACHE)
s.flags |= LOG_EVENT_BINLOG_IN_USE_F; s.flags |= LOG_EVENT_BINLOG_IN_USE_F;
s.checksum_alg= is_relay_log ?
/* relay-log */ if (is_relay_log)
/* inherit master's A descriptor if one has been received */ {
(relay_log_checksum_alg= if (relay_log_checksum_alg == BINLOG_CHECKSUM_ALG_UNDEF)
(relay_log_checksum_alg != BINLOG_CHECKSUM_ALG_UNDEF) ? relay_log_checksum_alg=
relay_log_checksum_alg : opt_slave_sql_verify_checksum ? (uint8) binlog_checksum_options
/* otherwise use slave's local preference of RL events verification */ : (uint8) BINLOG_CHECKSUM_ALG_OFF;
(opt_slave_sql_verify_checksum == 0) ? s.checksum_alg= relay_log_checksum_alg;
(uint8) BINLOG_CHECKSUM_ALG_OFF : (uint8) binlog_checksum_options): }
/* binlog */ else
(uint8) binlog_checksum_options; s.checksum_alg= (uint8) binlog_checksum_options;
DBUG_ASSERT(s.checksum_alg != BINLOG_CHECKSUM_ALG_UNDEF); DBUG_ASSERT(s.checksum_alg != BINLOG_CHECKSUM_ALG_UNDEF);
if (!s.is_valid()) if (!s.is_valid())
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment