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
4ea1c48a
Commit
4ea1c48a
authored
Jun 09, 2021
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a function comment to Field_varstring::mark_unused_memory_as_defined()
parent
8d37ef29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
sql/field.cc
sql/field.cc
+13
-0
No files found.
sql/field.cc
View file @
4ea1c48a
...
...
@@ -7867,6 +7867,19 @@ bool Field_varstring::send(Protocol *protocol)
#ifdef HAVE_MEM_CHECK
/*
Mark the unused part of the varstring as defined.
This function is only used be Unique when calculating statistics.
The marking is needed as we write the whole tree to disk in case of
overflows. For using or comparing values the undefined value part
is never used. We could also use bzero() here, but it would be
slower in production environments.
This function is tested by main.stat_tables-enospc
*/
void
Field_varstring
::
mark_unused_memory_as_defined
()
{
uint
used_length
__attribute__
((
unused
))
=
get_length
();
...
...
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