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
681e5c89
Commit
681e5c89
authored
Jul 31, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Catch a test that happened to work
git-svn-id:
file:///svn/tokudb@75
c7de825b-a66e-492c-adef-691d508d4ae1
parent
ca359d9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
newbrt/pma-test.c
newbrt/pma-test.c
+7
-1
newbrt/pma.c
newbrt/pma.c
+1
-1
No files found.
newbrt/pma-test.c
View file @
681e5c89
...
...
@@ -78,6 +78,7 @@ static void test_pma_find (void) {
pma
->
N
=
N
;
for
(
i
=
0
;
i
<
N
;
i
++
)
pma
->
pairs
[
i
].
key
=
0
;
assert
(
pma_index_limit
(
pma
)
==
N
);
pma
->
compare_fun
=
default_compare_fun
;
r
=
pmainternal_find
(
pma
,
fill_dbt
(
&
k
,
"hello"
,
5
),
0
);
assert
(
r
==
0
);
...
...
@@ -111,16 +112,18 @@ static void test_pma_find (void) {
void
test_smooth_region_N
(
int
N
)
{
struct
pair
pairs
[
N
];
char
*
strings
[
100
];
char
string
[
100
];
char
string
[
N
];
int
i
;
int
len
;
if
(
N
<
10
)
len
=
1
;
else
if
(
N
<
100
)
len
=
2
;
else
len
=
8
;
for
(
i
=
0
;
i
<
N
;
i
++
)
{
snprintf
(
string
,
10
,
"%0*d"
,
len
,
i
);
strings
[
i
]
=
strdup
(
string
);
}
assert
(
N
<
30
);
for
(
i
=
0
;
i
<
(
1
<<
N
)
-
1
;
i
++
)
{
int
insertat
;
...
...
@@ -158,6 +161,9 @@ void test_smooth_region_N (int N) {
}
}
}
for
(
i
=
0
;
i
<
N
;
i
++
)
{
free
(
strings
[
i
]);
}
}
...
...
newbrt/pma.c
View file @
681e5c89
...
...
@@ -504,9 +504,9 @@ int pma_free (PMA *pmap) {
}
}
toku_free
(
pma
->
pairs
);
toku_free
(
pma
);
if
(
pma
->
skey
)
toku_free
(
pma
->
skey
);
if
(
pma
->
sval
)
toku_free
(
pma
->
sval
);
toku_free
(
pma
);
*
pmap
=
0
;
return
0
;
}
...
...
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