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
222e5805
Commit
222e5805
authored
Apr 14, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/usr/home/bar/mysql-4.1.b18691
parents
5c0c1dcc
a875afd6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
myisam/mi_packrec.c
myisam/mi_packrec.c
+10
-4
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
myisam/mi_packrec.c
View file @
222e5805
...
@@ -1158,16 +1158,22 @@ my_bool _mi_memmap_file(MI_INFO *info)
...
@@ -1158,16 +1158,22 @@ my_bool _mi_memmap_file(MI_INFO *info)
MYISAM_SHARE
*
share
=
info
->
s
;
MYISAM_SHARE
*
share
=
info
->
s
;
DBUG_ENTER
(
"mi_memmap_file"
);
DBUG_ENTER
(
"mi_memmap_file"
);
if
(
!
info
->
s
->
file_map
)
if
(
!
share
->
file_map
)
{
{
my_off_t
data_file_length
=
share
->
state
.
state
.
data_file_length
;
if
(
data_file_length
>
(
my_off_t
)
(
~
((
size_t
)
0
))
-
MEMMAP_EXTRA_MARGIN
)
{
DBUG_PRINT
(
"warning"
,
(
"File is too large for mmap"
));
DBUG_RETURN
(
0
);
}
if
(
my_seek
(
info
->
dfile
,
0L
,
MY_SEEK_END
,
MYF
(
0
))
<
if
(
my_seek
(
info
->
dfile
,
0L
,
MY_SEEK_END
,
MYF
(
0
))
<
share
->
state
.
state
.
data_file_length
+
MEMMAP_EXTRA_MARGIN
)
data_file_length
+
MEMMAP_EXTRA_MARGIN
)
{
{
DBUG_PRINT
(
"warning"
,(
"File isn't extended for memmap"
));
DBUG_PRINT
(
"warning"
,(
"File isn't extended for memmap"
));
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
file_map
=
(
byte
*
)
file_map
=
(
byte
*
)
mmap
(
0
,
share
->
state
.
state
.
data_file_length
+
MEMMAP_EXTRA_MARGIN
,
PROT_READ
,
mmap
(
0
,
data_file_length
+
MEMMAP_EXTRA_MARGIN
,
PROT_READ
,
MAP_SHARED
|
MAP_NORESERVE
,
info
->
dfile
,
0L
);
MAP_SHARED
|
MAP_NORESERVE
,
info
->
dfile
,
0L
);
if
(
file_map
==
(
byte
*
)
MAP_FAILED
)
if
(
file_map
==
(
byte
*
)
MAP_FAILED
)
{
{
...
@@ -1175,7 +1181,7 @@ my_bool _mi_memmap_file(MI_INFO *info)
...
@@ -1175,7 +1181,7 @@ my_bool _mi_memmap_file(MI_INFO *info)
my_errno
=
errno
;
my_errno
=
errno
;
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
info
->
s
->
file_map
=
file_map
;
share
->
file_map
=
file_map
;
}
}
info
->
opt_flag
|=
MEMMAP_USED
;
info
->
opt_flag
|=
MEMMAP_USED
;
info
->
read_record
=
share
->
read_record
=
_mi_read_mempack_record
;
info
->
read_record
=
share
->
read_record
=
_mi_read_mempack_record
;
...
...
sql/mysqld.cc
View file @
222e5805
...
@@ -5253,7 +5253,7 @@ The minimum value for this variable is 4096.",
...
@@ -5253,7 +5253,7 @@ The minimum value for this variable is 4096.",
(
gptr
*
)
&
max_system_variables
.
max_length_for_sort_data
,
0
,
GET_ULONG
,
(
gptr
*
)
&
max_system_variables
.
max_length_for_sort_data
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
1024
,
4
,
8192
*
1024L
,
0
,
1
,
0
},
REQUIRED_ARG
,
1024
,
4
,
8192
*
1024L
,
0
,
1
,
0
},
{
"max_prepared_stmt_count"
,
OPT_MAX_PREPARED_STMT_COUNT
,
{
"max_prepared_stmt_count"
,
OPT_MAX_PREPARED_STMT_COUNT
,
"Maximum numb
r
er of prepared statements in the server."
,
"Maximum number of prepared statements in the server."
,
(
gptr
*
)
&
max_prepared_stmt_count
,
(
gptr
*
)
&
max_prepared_stmt_count
,
(
gptr
*
)
&
max_prepared_stmt_count
,
(
gptr
*
)
&
max_prepared_stmt_count
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
16382
,
0
,
1
*
1024
*
1024
,
0
,
1
,
0
},
0
,
GET_ULONG
,
REQUIRED_ARG
,
16382
,
0
,
1
*
1024
*
1024
,
0
,
1
,
0
},
{
"max_relay_log_size"
,
OPT_MAX_RELAY_LOG_SIZE
,
{
"max_relay_log_size"
,
OPT_MAX_RELAY_LOG_SIZE
,
...
...
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