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
8db4423b
Commit
8db4423b
authored
Mar 08, 2005
by
jani@ua141d10.elisa.omakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Bug#8922.
Reverted Jim's patch.
parent
fd6e7c87
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
17 deletions
+13
-17
client/mysql.cc
client/mysql.cc
+7
-2
include/my_sys.h
include/my_sys.h
+0
-1
mysys/mf_iocache.c
mysys/mf_iocache.c
+4
-12
sql/sql_class.h
sql/sql_class.h
+2
-2
No files found.
client/mysql.cc
View file @
8db4423b
...
...
@@ -44,7 +44,7 @@
#include <locale.h>
#endif
const
char
*
VER
=
"14.
8
"
;
const
char
*
VER
=
"14.
9
"
;
/* Don't try to make a nice table if the data is too big */
#define MAX_COLUMN_LENGTH 1024
...
...
@@ -1045,7 +1045,12 @@ static COMMANDS *find_command (char *name,char cmd_char)
{
while
(
my_isspace
(
charset_info
,
*
name
))
name
++
;
if
(
strstr
(
name
,
delimiter
)
||
strstr
(
name
,
"
\\
g"
))
/*
As special case we allow row that starts with word delimiter
to be able to change delimiter if someone has delimiter 'delimiter'.
*/
if
(
strstr
(
name
,
"
\\
g"
)
||
(
strstr
(
name
,
delimiter
)
&&
strncmp
(
name
,
"delimiter"
,
9
)))
return
((
COMMANDS
*
)
0
);
if
((
end
=
strcont
(
name
,
"
\t
"
)))
{
...
...
include/my_sys.h
View file @
8db4423b
...
...
@@ -279,7 +279,6 @@ enum loglevel {
enum
cache_type
{
READ_CACHE
,
WRITE_CACHE
,
APPEND_CACHE
,
/* Like WRITE_CACHE, but only append */
SEQ_READ_APPEND
/* sequential read or append */
,
READ_FIFO
,
READ_NET
,
WRITE_NET
};
...
...
mysys/mf_iocache.c
View file @
8db4423b
...
...
@@ -87,7 +87,7 @@ static void my_aiowait(my_aio_result *result);
void
setup_io_cache
(
IO_CACHE
*
info
)
{
/* Ensure that my_b_tell() and my_b_bytes_in_cache works */
if
(
info
->
type
==
WRITE_CACHE
||
info
->
type
==
APPEND_CACHE
)
if
(
info
->
type
==
WRITE_CACHE
)
{
info
->
current_pos
=
&
info
->
write_pos
;
info
->
current_end
=
&
info
->
write_end
;
...
...
@@ -247,7 +247,7 @@ int init_io_cache(IO_CACHE *info, File file, uint cachesize,
}
#endif
if
(
type
==
WRITE_CACHE
||
type
==
APPEND_CACHE
)
if
(
type
==
WRITE_CACHE
)
info
->
write_end
=
info
->
buffer
+
info
->
buffer_length
-
(
seek_offset
&
(
IO_SIZE
-
1
));
else
...
...
@@ -318,7 +318,6 @@ my_bool reinit_io_cache(IO_CACHE *info, enum cache_type type,
/* One can't do reinit with the following types */
DBUG_ASSERT
(
type
!=
READ_NET
&&
info
->
type
!=
READ_NET
&&
type
!=
WRITE_NET
&&
info
->
type
!=
WRITE_NET
&&
type
!=
APPEND_CACHE
&&
info
->
type
!=
APPEND_CACHE
&&
type
!=
SEQ_READ_APPEND
&&
info
->
type
!=
SEQ_READ_APPEND
);
/* If the whole file is in memory, avoid flushing to disk */
...
...
@@ -1124,8 +1123,7 @@ int my_b_flush_io_cache(IO_CACHE *info, int need_append_buffer_lock)
my_off_t
pos_in_file
;
DBUG_ENTER
(
"my_b_flush_io_cache"
);
if
(
!
(
append_cache
=
(
info
->
type
==
SEQ_READ_APPEND
||
info
->
type
==
APPEND_CACHE
)))
if
(
!
(
append_cache
=
(
info
->
type
==
SEQ_READ_APPEND
)))
need_append_buffer_lock
=
0
;
if
(
info
->
type
==
WRITE_CACHE
||
append_cache
)
...
...
@@ -1172,13 +1170,7 @@ int my_b_flush_io_cache(IO_CACHE *info, int need_append_buffer_lock)
else
{
info
->
end_of_file
+=
(
info
->
write_pos
-
info
->
append_read_pos
);
/*
We only need to worry that info->end_of_file is really accurate
for SEQ_READ_APPEND. For APPEND_CACHE, it is possible that the
file is non-seekable, like a FIFO.
*/
DBUG_ASSERT
(
info
->
type
!=
SEQ_READ_APPEND
||
info
->
end_of_file
==
my_tell
(
info
->
file
,
MYF
(
0
)));
DBUG_ASSERT
(
info
->
end_of_file
==
my_tell
(
info
->
file
,
MYF
(
0
)));
}
info
->
append_read_pos
=
info
->
write_pos
=
info
->
write_buffer
;
...
...
sql/sql_class.h
View file @
8db4423b
...
...
@@ -293,13 +293,13 @@ public:
{
char
buf
[
FN_REFLEN
];
return
open
(
generate_name
(
log_name
,
".log"
,
0
,
buf
),
LOG_NORMAL
,
0
,
APPEND
_CACHE
,
0
,
0
,
0
);
LOG_NORMAL
,
0
,
WRITE
_CACHE
,
0
,
0
,
0
);
}
bool
open_slow_log
(
const
char
*
log_name
)
{
char
buf
[
FN_REFLEN
];
return
open
(
generate_name
(
log_name
,
"-slow.log"
,
0
,
buf
),
LOG_NORMAL
,
0
,
APPEND
_CACHE
,
0
,
0
,
0
);
LOG_NORMAL
,
0
,
WRITE
_CACHE
,
0
,
0
,
0
);
}
bool
open_index_file
(
const
char
*
index_file_name_arg
,
const
char
*
log_name
);
...
...
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