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
e53e58d4
Commit
e53e58d4
authored
Sep 20, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a missing const qualifier
parent
48192f96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
storage/innobase/data/data0data.cc
storage/innobase/data/data0data.cc
+4
-7
storage/innobase/include/data0data.h
storage/innobase/include/data0data.h
+5
-5
No files found.
storage/innobase/data/data0data.cc
View file @
e53e58d4
...
...
@@ -803,14 +803,11 @@ big_rec_t::alloc(
return
(
rec
);
}
/** Create a deep copy of this object
@param[in] heap the memory heap in which the clone will be
created.
@return the cloned object. */
/** Create a deep copy of this object.
@param[in,out] heap memory heap in which the clone will be created
@return the cloned object */
dfield_t
*
dfield_t
::
clone
(
mem_heap_t
*
heap
)
dfield_t
::
clone
(
mem_heap_t
*
heap
)
const
{
const
ulint
size
=
len
==
UNIV_SQL_NULL
?
0
:
len
;
dfield_t
*
obj
=
static_cast
<
dfield_t
*>
(
...
...
storage/innobase/include/data0data.h
View file @
e53e58d4
/*****************************************************************************
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -586,11 +587,10 @@ struct dfield_t{
unsigned
len
;
/*!< data length; UNIV_SQL_NULL if SQL null */
dtype_t
type
;
/*!< type of data */
/** Create a deep copy of this object
@param[in] heap the memory heap in which the clone will be
created.
@return the cloned object. */
dfield_t
*
clone
(
mem_heap_t
*
heap
);
/** Create a deep copy of this object.
@param[in,out] heap memory heap in which the clone will be created
@return the cloned object */
dfield_t
*
clone
(
mem_heap_t
*
heap
)
const
;
};
/** Structure for an SQL data tuple of fields (logical record) */
...
...
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