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
69df4f83
Commit
69df4f83
authored
Jul 01, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-20377: Fix -Wunused-but-set-variable
parent
be517384
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
storage/innobase/data/data0data.cc
storage/innobase/data/data0data.cc
+8
-17
No files found.
storage/innobase/data/data0data.cc
View file @
69df4f83
...
...
@@ -194,29 +194,20 @@ dtuple_validate(
/*============*/
const
dtuple_t
*
tuple
)
/*!< in: tuple */
{
const
dfield_t
*
field
;
ulint
n_fields
;
ulint
len
;
ulint
i
;
ut_ad
(
tuple
->
magic_n
==
DATA_TUPLE_MAGIC_N
);
#ifdef HAVE_valgrind_or_MSAN
const
ulint
n_fields
=
dtuple_get_n_fields
(
tuple
);
n_fields
=
dtuple_get_n_fields
(
tuple
);
/* We dereference all the data of each field to test
for memory traps */
for
(
i
=
0
;
i
<
n_fields
;
i
++
)
{
field
=
dtuple_get_nth_field
(
tuple
,
i
);
len
=
dfield_get_len
(
field
);
for
(
ulint
i
=
0
;
i
<
n_fields
;
i
++
)
{
const
dfield_t
*
field
=
dtuple_get_nth_field
(
tuple
,
i
);
if
(
!
dfield_is_null
(
field
))
{
MEM_CHECK_DEFINED
(
dfield_get_data
(
field
),
len
);
MEM_CHECK_DEFINED
(
dfield_get_data
(
field
),
dfield_get_len
(
field
));
}
}
ut_a
(
dtuple_check_typed
(
tuple
));
#endif
/* HAVE_valgrind_or_MSAN */
ut_a
d
(
dtuple_check_typed
(
tuple
));
return
(
TRUE
);
}
...
...
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