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
53ff7dfb
Commit
53ff7dfb
authored
Apr 11, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.1
parents
db1a0f1c
abf41982
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
3 deletions
+33
-3
client/mysqltest.c
client/mysqltest.c
+30
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+2
-2
sql/udf_example.cc
sql/udf_example.cc
+1
-1
No files found.
client/mysqltest.c
View file @
53ff7dfb
...
...
@@ -5088,6 +5088,35 @@ static void init_var_hash(MYSQL *mysql)
DBUG_VOID_RETURN
;
}
static
void
mark_progress
(
int
line
)
{
#ifdef NOT_YET
static
FILE
*
fp
=
NULL
;
static
double
first
;
struct
timeval
tv
;
double
now
;
if
(
!
fp
)
{
fp
=
fopen
(
"/tmp/mysqltest_progress.log"
,
"wt"
);
if
(
!
fp
)
{
abort
();
}
gettimeofday
(
&
tv
,
NULL
);
first
=
tv
.
tv_sec
*
1e6
+
tv
.
tv_usec
;
}
gettimeofday
(
&
tv
,
NULL
);
now
=
tv
.
tv_sec
*
1e6
+
tv
.
tv_usec
;
fprintf
(
fp
,
"%d %f
\n
"
,
parser
.
current_line
,
(
now
-
first
)
/
1e6
);
#endif
}
int
main
(
int
argc
,
char
**
argv
)
{
...
...
@@ -5447,6 +5476,7 @@ int main(int argc, char **argv)
}
parser
.
current_line
+=
current_line_inc
;
mark_progress
(
parser
.
current_line
);
}
start_lineno
=
0
;
...
...
sql/ha_ndbcluster.cc
View file @
53ff7dfb
...
...
@@ -557,8 +557,6 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
switch
(
err
.
classification
)
{
case
NdbError
:
:
SchemaError
:
{
invalidate_dictionary_cache
(
TRUE
);
/* Close other open handlers not used by any thread */
TABLE_LIST
table_list
;
bzero
((
char
*
)
&
table_list
,
sizeof
(
table_list
));
...
...
@@ -566,6 +564,8 @@ int ha_ndbcluster::ndb_err(NdbTransaction *trans)
table_list
.
alias
=
table_list
.
table_name
=
m_tabname
;
close_cached_tables
(
current_thd
,
0
,
&
table_list
);
invalidate_dictionary_cache
(
TRUE
);
if
(
err
.
code
==
284
)
{
/*
...
...
sql/udf_example.cc
View file @
53ff7dfb
...
...
@@ -497,7 +497,7 @@ char *metaphon(UDF_INIT *initid, UDF_ARGS *args, char *result,
}
}
}
*
length
=
(
u
long
)
(
max
(
0
,
result
-
org_result
-
1
)
);
*
length
=
(
u
nsigned
long
)
(
result
-
org_result
);
return
org_result
;
}
...
...
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