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
f9e6ae6f
Commit
f9e6ae6f
authored
Nov 19, 2002
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
merge with 3.23
parents
c9c7e4d5
9cc2b10b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
configure.in
configure.in
+2
-1
extra/Makefile.am
extra/Makefile.am
+1
-1
mysys/Makefile.am
mysys/Makefile.am
+1
-1
mysys/mf_keycache.c
mysys/mf_keycache.c
+6
-5
No files found.
configure.in
View file @
f9e6ae6f
...
...
@@ -972,7 +972,8 @@ case $SYSTEM_TYPE in
;;
*
freebsd
*
)
echo
"Adding fix for interrupted reads"
CXXFLAGS
=
"
$CXXFLAGS
-DMYSQLD_NET_RETRY_COUNT=1000000"
CFLAGS
=
"
$CFLAGS
-DHAVE_BROKEN_REALPATH"
CXXFLAGS
=
"
$CXXFLAGS
-DMYSQLD_NET_RETRY_COUNT=1000000 -DHAVE_BROKEN_REALPATH"
;;
*
netbsd
*
)
echo
"Adding flag -Dunix"
...
...
extra/Makefile.am
View file @
f9e6ae6f
...
...
@@ -18,7 +18,7 @@ INCLUDES = @MT_INCLUDES@ -I$(srcdir)/../include -I../include -I..
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a
\
../dbug/libdbug.a ../strings/libmystrings.a
bin_PROGRAMS
=
replace comp_err perror resolveip my_print_defaults
\
resolve_stack_dump mysql_install
resolve_stack_dump mysql_install
# Don't update the files from bitkeeper
%
::
SCCS/s.%
mysys/Makefile.am
View file @
f9e6ae6f
...
...
@@ -100,7 +100,7 @@ test_io_cache: mf_iocache.c $(LIBRARIES)
test_dir
:
test_dir.c $(LIBRARIES)
$(LINK)
$(FLAGS)
-DMAIN
$(srcdir)
/test_dir.c
$(LDADD)
$(LIBS)
test_charset
:
test_charset.c $(LIBRARIES)
test_charset
$(EXEEXT)
:
test_charset.c $(LIBRARIES)
$(LINK)
$(FLAGS)
-DMAIN
$(srcdir)
/test_charset.c
$(LDADD)
$(LIBS)
testhash
:
testhash.c $(LIBRARIES)
...
...
mysys/mf_keycache.c
View file @
f9e6ae6f
...
...
@@ -595,13 +595,14 @@ static int flush_key_blocks_int(File file, enum flush_type type)
count
++
;
}
/* Only allocate a new buffer if its bigger than the one we have */
if
(
count
<=
FLUSH_CACHE
||
!
(
cache
=
(
SEC_LINK
**
)
my_malloc
(
sizeof
(
SEC_LINK
*
)
*
count
,
MYF
(
0
))))
if
(
count
>
FLUSH_CACHE
)
{
cache
=
cache_buff
;
/* Fall back to safe buffer */
count
=
FLUSH_CACHE
;
if
(
!
(
cache
=
(
SEC_LINK
**
)
my_malloc
(
sizeof
(
SEC_LINK
*
)
*
count
,
MYF
(
0
))))
{
cache
=
cache_buff
;
/* Fall back to safe buffer */
count
=
FLUSH_CACHE
;
}
}
end
=
cache
+
count
;
}
/* Go through the keys and write them to buffer to be flushed */
...
...
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