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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c3f4ecb5
Commit
c3f4ecb5
authored
Aug 31, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-4.1-7156
into mysql.com:/home/jimw/my/mysql-4.1-clean
parents
0ebf1576
37bf8394
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
configure.in
configure.in
+7
-0
include/my_global.h
include/my_global.h
+4
-0
isam/extra.c
isam/extra.c
+2
-2
myisam/mi_extra.c
myisam/mi_extra.c
+3
-3
sql/examples/ha_tina.cc
sql/examples/ha_tina.cc
+2
-0
No files found.
configure.in
View file @
c3f4ecb5
...
@@ -2043,6 +2043,13 @@ AC_CACHE_CHECK([style of gethost* routines], mysql_cv_gethost_style,
...
@@ -2043,6 +2043,13 @@ AC_CACHE_CHECK([style of gethost* routines], mysql_cv_gethost_style,
AC_LANG_SAVE
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_LANG_CPLUSPLUS
# Test whether madvise() is declared in C++ code -- it is not on some
# systems, such as Solaris
AC_CHECK_DECLS
(
madvise,
[]
,
[]
,
[
#if HAVE_SYS_MMAN_H
#include <sys/types.h>
#include <sys/mman.h>
#endif])
# Do not treat warnings as errors if we are linking against other libc
# Do not treat warnings as errors if we are linking against other libc
# this is to work around gcc not being permissive on non-system includes
# this is to work around gcc not being permissive on non-system includes
# with respect to ANSI C++
# with respect to ANSI C++
...
...
include/my_global.h
View file @
c3f4ecb5
...
@@ -310,6 +310,10 @@ C_MODE_END
...
@@ -310,6 +310,10 @@ C_MODE_END
#undef setrlimit
#undef setrlimit
#define setrlimit cma_setrlimit64
#define setrlimit cma_setrlimit64
#endif
#endif
/* Declare madvise where it is not declared for C++, like Solaris */
#if HAVE_MADVISE && !HAVE_DECL_MADVISE && defined(__cplusplus)
extern
"C"
int
madvise
(
void
*
addr
,
size_t
len
,
int
behav
);
#endif
#ifdef __QNXNTO__
#ifdef __QNXNTO__
/* This has to be after include limits.h */
/* This has to be after include limits.h */
...
...
isam/extra.c
View file @
c3f4ecb5
...
@@ -67,7 +67,7 @@ int nisam_extra(N_INFO *info, enum ha_extra_function function)
...
@@ -67,7 +67,7 @@ int nisam_extra(N_INFO *info, enum ha_extra_function function)
break
;
break
;
}
}
#endif
#endif
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
C
E)
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
S
E)
if
((
info
->
options
&
HA_OPTION_COMPRESS_RECORD
))
if
((
info
->
options
&
HA_OPTION_COMPRESS_RECORD
))
{
{
pthread_mutex_lock
(
&
info
->
s
->
intern_lock
);
pthread_mutex_lock
(
&
info
->
s
->
intern_lock
);
...
@@ -144,7 +144,7 @@ int nisam_extra(N_INFO *info, enum ha_extra_function function)
...
@@ -144,7 +144,7 @@ int nisam_extra(N_INFO *info, enum ha_extra_function function)
info
->
opt_flag
&=
~
(
READ_CACHE_USED
|
WRITE_CACHE_USED
);
info
->
opt_flag
&=
~
(
READ_CACHE_USED
|
WRITE_CACHE_USED
);
error
=
end_io_cache
(
&
info
->
rec_cache
);
error
=
end_io_cache
(
&
info
->
rec_cache
);
}
}
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
C
E)
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
S
E)
if
(
info
->
opt_flag
&
MEMMAP_USED
)
if
(
info
->
opt_flag
&
MEMMAP_USED
)
madvise
(
info
->
s
->
file_map
,
info
->
s
->
state
.
data_file_length
,
MADV_RANDOM
);
madvise
(
info
->
s
->
file_map
,
info
->
s
->
state
.
data_file_length
,
MADV_RANDOM
);
#endif
#endif
...
...
myisam/mi_extra.c
View file @
c3f4ecb5
...
@@ -62,7 +62,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
...
@@ -62,7 +62,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
}
}
if
(
share
->
base
.
blobs
)
if
(
share
->
base
.
blobs
)
mi_alloc_rec_buff
(
info
,
-
1
,
&
info
->
rec_buff
);
mi_alloc_rec_buff
(
info
,
-
1
,
&
info
->
rec_buff
);
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
C
E)
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
S
E)
if
(
info
->
opt_flag
&
MEMMAP_USED
)
if
(
info
->
opt_flag
&
MEMMAP_USED
)
madvise
(
share
->
file_map
,
share
->
state
.
state
.
data_file_length
,
MADV_RANDOM
);
madvise
(
share
->
file_map
,
share
->
state
.
state
.
data_file_length
,
MADV_RANDOM
);
#endif
#endif
...
@@ -93,7 +93,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
...
@@ -93,7 +93,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
my_errno
=
EACCES
;
my_errno
=
EACCES
;
break
;
break
;
}
}
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
C
E)
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
S
E)
if
((
share
->
options
&
HA_OPTION_COMPRESS_RECORD
))
if
((
share
->
options
&
HA_OPTION_COMPRESS_RECORD
))
{
{
pthread_mutex_lock
(
&
share
->
intern_lock
);
pthread_mutex_lock
(
&
share
->
intern_lock
);
...
@@ -177,7 +177,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
...
@@ -177,7 +177,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
error
=
end_io_cache
(
&
info
->
rec_cache
);
error
=
end_io_cache
(
&
info
->
rec_cache
);
/* Sergei will insert full text index caching here */
/* Sergei will insert full text index caching here */
}
}
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
C
E)
#if defined(HAVE_MMAP) && defined(HAVE_MADVI
S
E)
if
(
info
->
opt_flag
&
MEMMAP_USED
)
if
(
info
->
opt_flag
&
MEMMAP_USED
)
madvise
(
share
->
file_map
,
share
->
state
.
state
.
data_file_length
,
MADV_RANDOM
);
madvise
(
share
->
file_map
,
share
->
state
.
state
.
data_file_length
,
MADV_RANDOM
);
#endif
#endif
...
...
sql/examples/ha_tina.cc
View file @
c3f4ecb5
...
@@ -608,7 +608,9 @@ int ha_tina::rnd_init(bool scan)
...
@@ -608,7 +608,9 @@ int ha_tina::rnd_init(bool scan)
current_position
=
next_position
=
0
;
current_position
=
next_position
=
0
;
records
=
0
;
records
=
0
;
chain_ptr
=
chain
;
chain_ptr
=
chain
;
#ifdef HAVE_MADVISE
(
void
)
madvise
(
share
->
mapped_file
,
share
->
file_stat
.
st_size
,
MADV_SEQUENTIAL
);
(
void
)
madvise
(
share
->
mapped_file
,
share
->
file_stat
.
st_size
,
MADV_SEQUENTIAL
);
#endif
DBUG_RETURN
(
0
);
DBUG_RETURN
(
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