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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0783e5bc
Commit
0783e5bc
authored
Mar 24, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-3.23
into narttu.mysql.fi:/my/mysql-3.23
parents
e38d200c
3b0438c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sql/sql_delete.cc
sql/sql_delete.cc
+4
-1
No files found.
sql/sql_delete.cc
View file @
0783e5bc
...
@@ -30,6 +30,7 @@ int generate_table(THD *thd, TABLE_LIST *table_list, TABLE *locked_table)
...
@@ -30,6 +30,7 @@ int generate_table(THD *thd, TABLE_LIST *table_list, TABLE *locked_table)
char
path
[
FN_REFLEN
];
char
path
[
FN_REFLEN
];
int
error
;
int
error
;
TABLE
**
table_ptr
;
TABLE
**
table_ptr
;
my_bool
lock_open_locked
=
0
;
DBUG_ENTER
(
"generate_table"
);
DBUG_ENTER
(
"generate_table"
);
thd
->
proc_info
=
"generate_table"
;
thd
->
proc_info
=
"generate_table"
;
...
@@ -102,7 +103,7 @@ int generate_table(THD *thd, TABLE_LIST *table_list, TABLE *locked_table)
...
@@ -102,7 +103,7 @@ int generate_table(THD *thd, TABLE_LIST *table_list, TABLE *locked_table)
error
=
ha_create_table
(
path
,
&
create_info
,
1
)
?
-
1
:
0
;
error
=
ha_create_table
(
path
,
&
create_info
,
1
)
?
-
1
:
0
;
if
(
thd
->
locked_tables
&&
reopen_tables
(
thd
,
1
,
0
))
if
(
thd
->
locked_tables
&&
reopen_tables
(
thd
,
1
,
0
))
error
=
-
1
;
error
=
-
1
;
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
lock_open_locked
=
1
;
// Unlock mutex before return
}
}
if
(
!
error
)
if
(
!
error
)
{
{
...
@@ -114,6 +115,8 @@ int generate_table(THD *thd, TABLE_LIST *table_list, TABLE *locked_table)
...
@@ -114,6 +115,8 @@ int generate_table(THD *thd, TABLE_LIST *table_list, TABLE *locked_table)
}
}
send_ok
(
&
thd
->
net
);
// This should return record count
send_ok
(
&
thd
->
net
);
// This should return record count
}
}
if
(
lock_open_locked
)
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
DBUG_RETURN
(
error
?
-
1
:
0
);
DBUG_RETURN
(
error
?
-
1
:
0
);
}
}
...
...
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