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
8cb66fe6
Commit
8cb66fe6
authored
Feb 24, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mkindahl@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/bkroot/mysql-5.0
parents
91251238
52bba384
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
9 deletions
+17
-9
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
myisam/mi_extra.c
myisam/mi_extra.c
+1
-1
myisam/mi_packrec.c
myisam/mi_packrec.c
+5
-4
mysys/my_mmap.c
mysys/my_mmap.c
+6
-0
sql/sql_map.cc
sql/sql_map.cc
+4
-4
No files found.
BitKeeper/etc/logging_ok
View file @
8cb66fe6
...
...
@@ -207,6 +207,7 @@ ramil@mysql.com
ranger@regul.home.lan
rburnett@build.mysql.com
reggie@bob.(none)
reggie@mdk10.(none)
root@home.(none)
root@mc04.(none)
root@x3.internalnet
...
...
myisam/mi_extra.c
View file @
8cb66fe6
...
...
@@ -15,7 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "myisamdef.h"
#ifdef HAVE_
MMAP
#ifdef HAVE_
SYS_MMAN_H
#include <sys/mman.h>
#endif
...
...
myisam/mi_packrec.c
View file @
8cb66fe6
...
...
@@ -1181,11 +1181,12 @@ static uint max_bit(register uint value)
/*****************************************************************************
Some redefined functions to handle files when we are using memmap
*****************************************************************************/
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#ifdef HAVE_MMAP
#include <sys/mman.h>
static
int
_mi_read_mempack_record
(
MI_INFO
*
info
,
my_off_t
filepos
,
byte
*
buf
);
static
int
_mi_read_rnd_mempack_record
(
MI_INFO
*
,
byte
*
,
my_off_t
,
my_bool
);
...
...
@@ -1211,7 +1212,7 @@ my_bool _mi_memmap_file(MI_INFO *info)
DBUG_RETURN
(
0
);
}
file_map
=
(
byte
*
)
mmap
(
0
,
share
->
state
.
state
.
data_file_length
+
MEMMAP_EXTRA_MARGIN
,
PROT_READ
,
m
y_m
map
(
0
,
share
->
state
.
state
.
data_file_length
+
MEMMAP_EXTRA_MARGIN
,
PROT_READ
,
MAP_SHARED
|
MAP_NORESERVE
,
info
->
dfile
,
0L
);
if
(
file_map
==
(
byte
*
)
MAP_FAILED
)
{
...
...
@@ -1230,7 +1231,7 @@ my_bool _mi_memmap_file(MI_INFO *info)
void
_mi_unmap_file
(
MI_INFO
*
info
)
{
VOID
(
munmap
((
caddr_t
)
info
->
s
->
file_map
,
VOID
(
m
y_m
unmap
((
caddr_t
)
info
->
s
->
file_map
,
(
size_t
)
info
->
s
->
state
.
state
.
data_file_length
+
MEMMAP_EXTRA_MARGIN
));
}
...
...
mysys/my_mmap.c
View file @
8cb66fe6
...
...
@@ -84,6 +84,12 @@ int my_msync(int fd, void *addr, size_t len, int flags)
}
#endif
#ifdef _WINDOWS
#pragma message "no mmap!"
#else
#warning "no mmap!"
#endif
#endif
sql/sql_map.cc
View file @
8cb66fe6
...
...
@@ -20,7 +20,7 @@
#endif
#include "mysql_priv.h"
#ifdef HAVE_
MMAP
#ifdef HAVE_
SYS_MMAN_H
#include <sys/mman.h>
#include <sys/stat.h>
#endif
...
...
@@ -42,7 +42,7 @@ mapped_files::mapped_files(const my_string filename,byte *magic,uint magic_lengt
struct
stat
stat_buf
;
if
(
!
fstat
(
file
,
&
stat_buf
))
{
if
(
!
(
map
=
(
byte
*
)
mmap
(
0
,(
size
=
(
ulong
)
stat_buf
.
st_size
),
PROT_READ
,
if
(
!
(
map
=
(
byte
*
)
m
y_m
map
(
0
,(
size
=
(
ulong
)
stat_buf
.
st_size
),
PROT_READ
,
MAP_SHARED
|
MAP_NORESERVE
,
file
,
0L
)))
{
...
...
@@ -53,7 +53,7 @@ mapped_files::mapped_files(const my_string filename,byte *magic,uint magic_lengt
if
(
map
&&
memcmp
(
map
,
magic
,
magic_length
))
{
my_error
(
ER_WRONG_MAGIC
,
MYF
(
0
),
name
);
VOID
(
munmap
(
map
,
size
));
VOID
(
m
y_m
unmap
(
map
,
size
));
map
=
0
;
}
if
(
!
map
)
...
...
@@ -71,7 +71,7 @@ mapped_files::~mapped_files()
#ifdef HAVE_MMAP
if
(
file
>=
0
)
{
VOID
(
munmap
((
caddr_t
)
map
,
size
));
VOID
(
m
y_m
unmap
((
caddr_t
)
map
,
size
));
VOID
(
my_close
(
file
,
MYF
(
0
)));
file
=
-
1
;
map
=
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