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
12c89f30
Commit
12c89f30
authored
Dec 12, 2007
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change 17 to 9 and the test works
git-svn-id:
file:///svn/tokudb@1089
c7de825b-a66e-492c-adef-691d508d4ae1
parent
a3cf241f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/tests/test_db_assoc3.c
src/tests/test_db_assoc3.c
+4
-4
No files found.
src/tests/test_db_assoc3.c
View file @
12c89f30
...
...
@@ -117,7 +117,7 @@ void read_pd_from_dbt (const DBT *dbt, int *off, struct primary_data *pd) {
}
int
name_offset_in_pd_dbt
(
void
)
{
return
17
;
return
9
;
}
int
name_callback
(
DB
*
secondary
__attribute__
((
__unused__
)),
const
DBT
*
key
,
const
DBT
*
data
,
DBT
*
result
)
{
...
...
@@ -298,7 +298,7 @@ void insert_person (void) {
// If the cursor is to the left of the current item, then increment count_items
{
int
compare
=
strcmp
((
char
*
)
namearray
,
nc_key
.
data
);
//
printf(
"%s:%d compare=%d insert %s, cursor at %s\n", __FILE__, __LINE__, compare, namearray, (char*)nc_key.data);
//
fprintf(stderr,
"%s:%d compare=%d insert %s, cursor at %s\n", __FILE__, __LINE__, compare, namearray, (char*)nc_key.data);
if
(
compare
>
0
)
calc_n_items
++
;
count_all_items
++
;
}
...
...
@@ -324,7 +324,7 @@ void delete_oldest_expired (void) {
int
compare
=
strcmp
(
deleted_key
,
nc_key
.
data
);
fprintf
(
stderr
,
"del %2d%c %s
\n
"
,
dt
[
7
],
dt
[
8
]
?
'e'
:
' '
,
dt
+
9
);
if
(
compare
>
0
)
{
//
printf(
"%s:%d r3=%d compare=%d count=%d cacount=%d cucount=%d deleting %s cursor=%s\n", __FILE__, __LINE__, r3, compare, count_all_items, calc_n_items, cursor_count_n_items, deleted_key, (char*)nc_key.data);
//
fprintf(stderr,
"%s:%d r3=%d compare=%d count=%d cacount=%d cucount=%d deleting %s cursor=%s\n", __FILE__, __LINE__, r3, compare, count_all_items, calc_n_items, cursor_count_n_items, deleted_key, (char*)nc_key.data);
calc_n_items
--
;
}
count_all_items
--
;
...
...
@@ -366,7 +366,7 @@ void step_name (void) {
fprintf
(
stderr
,
"crs %2d%c %s
\n
"
,
dt
[
7
],
dt
[
8
]
?
'e'
:
' '
,
dt
+
9
);
}
else
if
(
r
==
DB_NOTFOUND
)
{
// Got to the end.
//
printf("%s:%d Got to end count=%d curscount=%d\n", __FILE__, __LINE__, calc_n_items, cursor_count_n
_items);
//
fprintf(stderr, "%s:%d Got to end count=%d curscount=%d all=%d\n", __FILE__, __LINE__, calc_n_items, cursor_count_n_items, count_all
_items);
assert
(
cursor_count_n_items
==
calc_n_items
);
r
=
name_cursor
->
c_get
(
name_cursor
,
&
nc_key
,
&
nc_data
,
DB_FIRST
);
if
(
r
==
DB_NOTFOUND
)
{
...
...
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