Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b6a116ce
Commit
b6a116ce
authored
Jul 11, 2014
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge of patch for MDEV#5786.
parent
dc377fcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
client/mysql_upgrade.c
client/mysql_upgrade.c
+5
-0
client/mysqlcheck.c
client/mysqlcheck.c
+6
-0
No files found.
client/mysql_upgrade.c
View file @
b6a116ce
...
...
@@ -523,7 +523,12 @@ static int run_query(const char *query, DYNAMIC_STRING *ds_res,
int
ret
;
File
fd
;
char
query_file_path
[
FN_REFLEN
];
#ifdef WITH_WSREP
/* Note: wsrep_on=ON implicitly enables binary logging. */
const
uchar
sql_log_bin
[]
=
"SET SQL_LOG_BIN=0, WSREP_ON=OFF;"
;
#else
const
uchar
sql_log_bin
[]
=
"SET SQL_LOG_BIN=0;"
;
#endif
/* WITH_WSREP */
DBUG_ENTER
(
"run_query"
);
DBUG_PRINT
(
"enter"
,
(
"query: %s"
,
query
));
...
...
client/mysqlcheck.c
View file @
b6a116ce
...
...
@@ -731,9 +731,15 @@ static int use_db(char *database)
DBUG_RETURN
(
0
);
}
/* use_db */
/* Do not send commands to replication slaves. */
static
int
disable_binlog
()
{
#ifdef WITH_WSREP
/* Additionally turn off @@wsrep_on to disable implicit binary logging. */
const
char
*
stmt
=
"SET SQL_LOG_BIN=0, WSREP_ON=OFF"
;
#else
const
char
*
stmt
=
"SET SQL_LOG_BIN=0"
;
#endif
/* WITH_WSREP */
return
run_query
(
stmt
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment