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
cc7a1e66
Commit
cc7a1e66
authored
Aug 14, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually use maybe-faster-malloc
git-svn-id:
file:///svn/tokudb@132
c7de825b-a66e-492c-adef-691d508d4ae1
parent
727b83a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
newbrt/key.c
newbrt/key.c
+3
-3
newbrt/pma-test.c
newbrt/pma-test.c
+1
-1
No files found.
newbrt/key.c
View file @
cc7a1e66
...
@@ -19,7 +19,7 @@ int keycompare (bytevec key1b, ITEMLEN key1len, bytevec key2b, ITEMLEN key2len)
...
@@ -19,7 +19,7 @@ int keycompare (bytevec key1b, ITEMLEN key1len, bytevec key2b, ITEMLEN key2len)
return 0;
return 0;
}
}
#el
s
if 0
#elif
0
int
keycompare
(
bytevec
key1
,
ITEMLEN
key1len
,
bytevec
key2
,
ITEMLEN
key2len
)
{
int
keycompare
(
bytevec
key1
,
ITEMLEN
key1len
,
bytevec
key2
,
ITEMLEN
key2len
)
{
if
(
key1len
==
key2len
)
{
if
(
key1len
==
key2len
)
{
return
memcmp
(
key1
,
key2
,
key1len
);
return
memcmp
(
key1
,
key2
,
key1len
);
...
@@ -31,7 +31,7 @@ int keycompare (bytevec key1, ITEMLEN key1len, bytevec key2, ITEMLEN key2len) {
...
@@ -31,7 +31,7 @@ int keycompare (bytevec key1, ITEMLEN key1len, bytevec key2, ITEMLEN key2len) {
return
-
keycompare
(
key2
,
key2len
,
key1
,
key1len
);
return
-
keycompare
(
key2
,
key2len
,
key1
,
key1len
);
}
}
}
}
#elif
1
#elif
0
int
keycompare
(
bytevec
key1
,
ITEMLEN
key1len
,
bytevec
key2
,
ITEMLEN
key2len
)
{
int
keycompare
(
bytevec
key1
,
ITEMLEN
key1len
,
bytevec
key2
,
ITEMLEN
key2len
)
{
if
(
key1len
==
key2len
)
{
if
(
key1len
==
key2len
)
{
...
@@ -53,7 +53,7 @@ int keycompare (bytevec key1, ITEMLEN key1len, bytevec key2, ITEMLEN key2len) {
...
@@ -53,7 +53,7 @@ int keycompare (bytevec key1, ITEMLEN key1len, bytevec key2, ITEMLEN key2len) {
const
unsigned
char
*
k2
;
const
unsigned
char
*
k2
;
for
(
k1
=
key1
,
k2
=
key2
;
for
(
k1
=
key1
,
k2
=
key2
;
comparelen
>
0
;
comparelen
>
0
;
k1
++
,
k2
++
)
{
k1
++
,
k2
++
,
comparelen
--
)
{
if
(
*
k1
!=
*
k2
)
{
if
(
*
k1
!=
*
k2
)
{
return
(
int
)
*
k1
-
(
int
)
*
k2
;
return
(
int
)
*
k1
-
(
int
)
*
k2
;
}
}
...
...
newbrt/pma-test.c
View file @
cc7a1e66
...
@@ -1051,6 +1051,7 @@ void test_pma_insert_or_replace(void) {
...
@@ -1051,6 +1051,7 @@ void test_pma_insert_or_replace(void) {
void
pma_tests
(
void
)
{
void
pma_tests
(
void
)
{
memory_check
=
1
;
memory_check
=
1
;
test_keycompare
();
memory_check_all_free
();
test_pma_compare_fun
(
0
);
memory_check_all_free
();
test_pma_compare_fun
(
0
);
memory_check_all_free
();
test_pma_compare_fun
(
1
);
memory_check_all_free
();
test_pma_compare_fun
(
1
);
memory_check_all_free
();
test_pma_iterate
();
test_pma_iterate
();
...
@@ -1061,7 +1062,6 @@ void pma_tests (void) {
...
@@ -1061,7 +1062,6 @@ void pma_tests (void) {
test_pma_find
();
memory_check_all_free
();
test_pma_find
();
memory_check_all_free
();
test_calculate_parameters
();
memory_check_all_free
();
test_calculate_parameters
();
memory_check_all_free
();
test_count_region
();
memory_check_all_free
();
test_count_region
();
memory_check_all_free
();
test_keycompare
();
memory_check_all_free
();
test_pma_random_pick
();
memory_check_all_free
();
test_pma_random_pick
();
memory_check_all_free
();
test_pma_cursor
();
memory_check_all_free
();
test_pma_cursor
();
memory_check_all_free
();
test_pma_split
();
memory_check_all_free
();
test_pma_split
();
memory_check_all_free
();
...
...
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