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
97b0eeed
Commit
97b0eeed
authored
Oct 06, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Add missing const
parent
959ad2f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
+8
-13
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+1
-1
storage/innobase/include/row0mysql.h
storage/innobase/include/row0mysql.h
+7
-12
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
97b0eeed
...
...
@@ -20169,7 +20169,7 @@ innobase_rename_vc_templ(
for purge thread.
*/
bool
innobase_allocate_row_for_vcol
(
THD
*
thd
,
dict_index_t
*
index
,
bool
innobase_allocate_row_for_vcol
(
THD
*
thd
,
const
dict_index_t
*
index
,
mem_heap_t
**
heap
,
TABLE
**
table
,
VCOL_STORAGE
*
storage
)
{
...
...
storage/innobase/include/row0mysql.h
View file @
97b0eeed
...
...
@@ -755,9 +755,8 @@ struct VCOL_STORAGE
@return TRUE malloc failure
*/
bool
innobase_allocate_row_for_vcol
(
THD
*
thd
,
dict_index_t
*
index
,
bool
innobase_allocate_row_for_vcol
(
THD
*
thd
,
const
dict_index_t
*
index
,
mem_heap_t
**
heap
,
TABLE
**
table
,
VCOL_STORAGE
*
storage
);
...
...
@@ -773,17 +772,13 @@ class ib_vcol_row
ib_vcol_row
(
mem_heap_t
*
heap
)
:
heap
(
heap
)
{}
byte
*
record
(
THD
*
thd
,
dict_index_t
*
index
,
TABLE
**
table
)
byte
*
record
(
THD
*
thd
,
const
dict_index_t
*
index
,
TABLE
**
table
)
{
if
(
!
storage
.
innobase_record
)
{
bool
ok
=
innobase_allocate_row_for_vcol
(
thd
,
index
,
&
heap
,
table
,
&
storage
);
if
(
!
ok
)
return
NULL
;
}
if
(
!
storage
.
innobase_record
&&
!
innobase_allocate_row_for_vcol
(
thd
,
index
,
&
heap
,
table
,
&
storage
))
return
nullptr
;
return
storage
.
innobase_record
;
}
;
}
~
ib_vcol_row
()
{
...
...
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