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
13033a5d
Commit
13033a5d
authored
Mar 24, 2010
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Plain Diff
merging.
parents
a1590d2e
7feb51da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
sql/sql_load.cc
sql/sql_load.cc
+3
-5
sql/sql_show.cc
sql/sql_show.cc
+3
-0
No files found.
sql/sql_load.cc
View file @
13033a5d
...
...
@@ -689,12 +689,10 @@ static bool write_execute_load_query_log_event(THD *thd, sql_exchange* ex,
strcpy
(
end
,
p
);
end
+=
pl
;
thd
->
set_query_inner
(
load_data_query
,
end
-
load_data_query
);
Execute_load_query_log_event
e
(
thd
,
thd
->
query
(),
thd
->
query_length
()
,
(
uint
)
((
char
*
)
fname_start
-
(
char
*
)
thd
->
query
()
-
1
),
(
uint
)
((
char
*
)
fname_end
-
(
char
*
)
thd
->
query
()
),
e
(
thd
,
load_data_query
,
end
-
load_data_query
,
(
uint
)
((
char
*
)
fname_start
-
load_data_query
-
1
),
(
uint
)
((
char
*
)
fname_end
-
load_data_query
),
(
duplicates
==
DUP_REPLACE
)
?
LOAD_DUP_REPLACE
:
(
ignore
?
LOAD_DUP_IGNORE
:
LOAD_DUP_ERROR
),
transactional_table
,
FALSE
,
errcode
);
...
...
sql/sql_show.cc
View file @
13033a5d
...
...
@@ -1991,6 +1991,8 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
pthread_mutex_unlock
(
&
mysys_var
->
mutex
);
/* INFO */
/* Lock THD mutex that protects its data when looking at it. */
pthread_mutex_lock
(
&
tmp
->
LOCK_thd_data
);
if
(
tmp
->
query
())
{
table
->
field
[
7
]
->
store
(
tmp
->
query
(),
...
...
@@ -1998,6 +2000,7 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
tmp
->
query_length
()),
cs
);
table
->
field
[
7
]
->
set_notnull
();
}
pthread_mutex_unlock
(
&
tmp
->
LOCK_thd_data
);
if
(
schema_table_store_record
(
thd
,
table
))
{
...
...
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