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
28d41241
Commit
28d41241
authored
Jan 29, 2018
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type truncation warnings.
rx_i_s_cache_t is now bool, not ibool.
parent
8b673d44
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
storage/innobase/include/trx0i_s.h
storage/innobase/include/trx0i_s.h
+2
-2
storage/innobase/trx/trx0i_s.cc
storage/innobase/trx/trx0i_s.cc
+5
-5
No files found.
storage/innobase/include/trx0i_s.h
View file @
28d41241
...
...
@@ -264,10 +264,10 @@ trx_i_s_possibly_fetch_data_into_cache(
trx_i_s_cache_t
*
cache
);
/*!< in/out: cache */
/*******************************************************************//**
Returns
TRUE
if the data in the cache is truncated due to the memory
Returns
true,
if the data in the cache is truncated due to the memory
limit posed by TRX_I_S_MEM_LIMIT.
@return TRUE if truncated */
i
bool
bool
trx_i_s_cache_is_truncated
(
/*=======================*/
trx_i_s_cache_t
*
cache
);
/*!< in: cache */
...
...
storage/innobase/trx/trx0i_s.cc
View file @
28d41241
...
...
@@ -175,7 +175,7 @@ struct trx_i_s_cache_t {
lock_sys->mutex or trx_sys.mutex */
ulint
mem_allocd
;
/*!< the amount of memory
allocated with mem_alloc*() */
ibool
is_truncated
;
/*!< this is TRUE
if the memory
bool
is_truncated
;
/*!< this is true
if the memory
limit was hit and thus the data
in the cache is truncated */
};
...
...
@@ -1271,7 +1271,7 @@ static void fetch_data_into_cache_low(trx_i_s_cache_t *cache, const trx_t *trx)
}
/* memory could not be allocated */
cache
->
is_truncated
=
TRUE
;
cache
->
is_truncated
=
true
;
}
...
...
@@ -1321,7 +1321,7 @@ static void fetch_data_into_cache(trx_i_s_cache_t *cache)
}
}
mutex_exit
(
&
trx_sys
.
mutex
);
cache
->
is_truncated
=
FALSE
;
cache
->
is_truncated
=
false
;
}
...
...
@@ -1356,7 +1356,7 @@ trx_i_s_possibly_fetch_data_into_cache(
Returns TRUE if the data in the cache is truncated due to the memory
limit posed by TRX_I_S_MEM_LIMIT.
@return TRUE if truncated */
i
bool
bool
trx_i_s_cache_is_truncated
(
/*=======================*/
trx_i_s_cache_t
*
cache
)
/*!< in: cache */
...
...
@@ -1403,7 +1403,7 @@ trx_i_s_cache_init(
cache
->
mem_allocd
=
0
;
cache
->
is_truncated
=
FALSE
;
cache
->
is_truncated
=
false
;
}
/*******************************************************************//**
...
...
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