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
845357ae
Commit
845357ae
authored
Jun 20, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-merge comment style fix
parent
d8fadc42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
include/my_sys.h
include/my_sys.h
+21
-17
No files found.
include/my_sys.h
View file @
845357ae
...
@@ -316,7 +316,7 @@ typedef struct st_io_cache_share
...
@@ -316,7 +316,7 @@ typedef struct st_io_cache_share
int
count
;
int
count
;
/* actual IO_CACHE that filled the buffer */
/* actual IO_CACHE that filled the buffer */
struct
st_io_cache
*
active
;
struct
st_io_cache
*
active
;
/* the following will
go
implemented whenever the need arises */
/* the following will
be
implemented whenever the need arises */
#ifdef NOT_IMPLEMENTED
#ifdef NOT_IMPLEMENTED
/* whether the structure should be free'd */
/* whether the structure should be free'd */
my_bool
alloced
;
my_bool
alloced
;
...
@@ -387,14 +387,18 @@ typedef struct st_io_cache /* Used when cacheing files */
...
@@ -387,14 +387,18 @@ typedef struct st_io_cache /* Used when cacheing files */
*/
*/
byte
**
current_pos
,
**
current_end
;
byte
**
current_pos
,
**
current_end
;
#ifdef THREAD
#ifdef THREAD
/* The lock is for append buffer used in SEQ_READ_APPEND cache
/*
need mutex copying from append buffer to read buffer. */
The lock is for append buffer used in SEQ_READ_APPEND cache
need mutex copying from append buffer to read buffer.
*/
pthread_mutex_t
append_buffer_lock
;
pthread_mutex_t
append_buffer_lock
;
/* The following is used when several threads are reading the
/*
same file in parallel. They are synchronized on disk
The following is used when several threads are reading the
accesses reading the cached part of the file asynchronously.
same file in parallel. They are synchronized on disk
It should be set to NULL to disable the feature. Only
accesses reading the cached part of the file asynchronously.
READ_CACHE mode is supported. */
It should be set to NULL to disable the feature. Only
READ_CACHE mode is supported.
*/
IO_CACHE_SHARE
*
share
;
IO_CACHE_SHARE
*
share
;
#endif
#endif
/*
/*
...
@@ -411,10 +415,10 @@ typedef struct st_io_cache /* Used when cacheing files */
...
@@ -411,10 +415,10 @@ typedef struct st_io_cache /* Used when cacheing files */
be replaced with my_b_append() for a SEQ_READ_APPEND cache
be replaced with my_b_append() for a SEQ_READ_APPEND cache
*/
*/
int
(
*
write_function
)(
struct
st_io_cache
*
,
const
byte
*
,
uint
);
int
(
*
write_function
)(
struct
st_io_cache
*
,
const
byte
*
,
uint
);
/*
/*
Specifies the type of the cache. Depending on the type of the cache
Specifies the type of the cache. Depending on the type of the cache
certain operations might not be available and yield unpredicatable
certain operations might not be available and yield unpredicatable
results. Details to be documented later
results. Details to be documented later
*/
*/
enum
cache_type
type
;
enum
cache_type
type
;
/*
/*
...
@@ -445,11 +449,11 @@ typedef struct st_io_cache /* Used when cacheing files */
...
@@ -445,11 +449,11 @@ typedef struct st_io_cache /* Used when cacheing files */
uint
read_length
;
uint
read_length
;
myf
myflags
;
/* Flags used to my_read/my_write */
myf
myflags
;
/* Flags used to my_read/my_write */
/*
/*
alloced_buffer is 1 if the buffer was allocated by init_io_cache() and
alloced_buffer is 1 if the buffer was allocated by init_io_cache() and
0 if it was supplied by the user.
0 if it was supplied by the user.
Currently READ_NET is the only one that will use a buffer allocated
Currently READ_NET is the only one that will use a buffer allocated
somewhere else
somewhere else
*/
*/
my_bool
alloced_buffer
;
my_bool
alloced_buffer
;
#ifdef HAVE_AIOWAIT
#ifdef HAVE_AIOWAIT
/*
/*
...
...
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