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
f68c3c0a
Commit
f68c3c0a
authored
Sep 02, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
automerge
parents
7d9f97f5
f076ba28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
mysys/mf_iocache.c
mysys/mf_iocache.c
+10
-7
storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
+6
-1
No files found.
mysys/mf_iocache.c
View file @
f68c3c0a
...
...
@@ -227,18 +227,21 @@ int init_io_cache(IO_CACHE *info, File file, size_t cachesize,
for
(;;)
{
size_t
buffer_block
;
/*
Unset MY_WAIT_IF_FULL bit if it is set, to prevent conflict with
MY_ZEROFILL.
*/
myf
flags
=
(
myf
)
(
cache_myflags
&
~
(
MY_WME
|
MY_WAIT_IF_FULL
));
if
(
cachesize
<
min_cache
)
cachesize
=
min_cache
;
buffer_block
=
cachesize
;
if
(
type
==
SEQ_READ_APPEND
)
buffer_block
*=
2
;
/*
Unset MY_WAIT_IF_FULL bit if it is set, to prevent conflict with
MY_ZEROFILL.
*/
myf
flag
=
MYF
((
cache_myflags
&
~
(
MY_WME
|
MY_WAIT_IF_FULL
))
|
(
cachesize
==
min_cache
?
MY_WME
:
0
));
if
((
info
->
buffer
=
(
uchar
*
)
my_malloc
(
buffer_block
,
flag
))
!=
0
)
if
(
cachesize
==
min_cache
)
flags
|=
(
myf
)
MY_WME
;
if
((
info
->
buffer
=
(
uchar
*
)
my_malloc
(
buffer_block
,
flags
))
!=
0
)
{
info
->
write_buffer
=
info
->
buffer
;
if
(
type
==
SEQ_READ_APPEND
)
...
...
storage/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
View file @
f68c3c0a
...
...
@@ -106,8 +106,13 @@ void
AsyncFile
::
doStart
()
{
// Stacksize for filesystem threads
// An 8k stack should be enough
#if !defined(DBUG_OFF) && defined (__hpux)
// Empirical evidence indicates at least 32k
const
NDB_THREAD_STACKSIZE
stackSize
=
32768
;
#else
// Otherwise an 8k stack should be enough
const
NDB_THREAD_STACKSIZE
stackSize
=
8192
;
#endif
char
buf
[
16
];
numAsyncFiles
++
;
...
...
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