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
e149ab9d
Commit
e149ab9d
authored
Dec 07, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run on mariadb 10 with its safe malloc
parent
e790efdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
storage/tokudb/ha_tokudb.cc
storage/tokudb/ha_tokudb.cc
+1
-1
No files found.
storage/tokudb/ha_tokudb.cc
View file @
e149ab9d
...
...
@@ -1731,7 +1731,7 @@ int ha_tokudb::initialize_share(const char* name, int mode) {
// initialize cardinality info from the status dictionary
share
->
n_rec_per_key
=
tokudb
::
compute_total_key_parts
(
table_share
);
share
->
rec_per_key
=
(
uint64_t
*
)
tokudb_my_realloc
(
share
->
rec_per_key
,
share
->
n_rec_per_key
*
sizeof
(
uint64_t
),
MYF
(
MY_FAE
));
share
->
rec_per_key
=
(
uint64_t
*
)
tokudb_my_realloc
(
share
->
rec_per_key
,
share
->
n_rec_per_key
*
sizeof
(
uint64_t
),
MYF
(
MY_FAE
+
MY_ALLOW_ZERO_PTR
));
error
=
tokudb
::
get_card_from_status
(
share
->
status_block
,
txn
,
share
->
n_rec_per_key
,
share
->
rec_per_key
);
if
(
error
)
{
for
(
uint
i
=
0
;
i
<
share
->
n_rec_per_key
;
i
++
)
...
...
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