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
98736877
Commit
98736877
authored
Feb 22, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge chilla.local:/home/mydev/mysql-5.1--team
into chilla.local:/home/mydev/mysql-5.1-bug25460
parents
e0ef6303
b3a28c08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
storage/myisam/mi_open.c
storage/myisam/mi_open.c
+8
-16
No files found.
storage/myisam/mi_open.c
View file @
98736877
...
@@ -506,22 +506,6 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
...
@@ -506,22 +506,6 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
share
->
data_file_type
=
DYNAMIC_RECORD
;
share
->
data_file_type
=
DYNAMIC_RECORD
;
my_afree
((
gptr
)
disk_cache
);
my_afree
((
gptr
)
disk_cache
);
mi_setup_functions
(
share
);
mi_setup_functions
(
share
);
if
(
open_flags
&
HA_OPEN_MMAP
)
{
info
.
s
=
share
;
if
(
mi_dynmap_file
(
&
info
,
share
->
state
.
state
.
data_file_length
))
{
/* purecov: begin inspected */
/* Ignore if mmap fails. Use file I/O instead. */
DBUG_PRINT
(
"warning"
,
(
"mmap failed: errno: %d"
,
errno
));
/* purecov: end */
}
else
{
share
->
file_read
=
mi_mmap_pread
;
share
->
file_write
=
mi_mmap_pwrite
;
}
}
share
->
is_log_table
=
FALSE
;
share
->
is_log_table
=
FALSE
;
#ifdef THREAD
#ifdef THREAD
thr_lock_init
(
&
share
->
lock
);
thr_lock_init
(
&
share
->
lock
);
...
@@ -552,6 +536,14 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
...
@@ -552,6 +536,14 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
}
}
}
}
#endif
#endif
/*
Memory mapping can only be requested after initializing intern_lock.
*/
if
(
open_flags
&
HA_OPEN_MMAP
)
{
info
.
s
=
share
;
mi_extra
(
&
info
,
HA_EXTRA_MMAP
,
0
);
}
}
}
else
else
{
{
...
...
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