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
43612216
Commit
43612216
authored
Nov 09, 2011
by
Zardosht Kasheff
Committed by
Yoni Fogel
Apr 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[t:4105], add more fixes
git-svn-id:
file:///svn/toku/tokudb@36744
c7de825b-a66e-492c-adef-691d508d4ae1
parent
0165f7ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
newbrt/tests/cachetable-test.c
newbrt/tests/cachetable-test.c
+3
-0
No files found.
newbrt/tests/cachetable-test.c
View file @
43612216
...
@@ -380,6 +380,7 @@ static int add123_fetch (CACHEFILE cf, int UU(fd), CACHEKEY key, u_int32_t fullh
...
@@ -380,6 +380,7 @@ static int add123_fetch (CACHEFILE cf, int UU(fd), CACHEKEY key, u_int32_t fullh
assert
((
long
)
extraargs
==
123
);
assert
((
long
)
extraargs
==
123
);
*
value
=
(
void
*
)((
unsigned
long
)
key
.
b
+
123L
);
*
value
=
(
void
*
)((
unsigned
long
)
key
.
b
+
123L
);
*
dirtyp
=
0
;
*
dirtyp
=
0
;
*
sizep
=
make_pair_attr
(
0
);
return
0
;
return
0
;
}
}
...
@@ -388,6 +389,7 @@ static int add222_fetch (CACHEFILE cf, int UU(fd), CACHEKEY key, u_int32_t fullh
...
@@ -388,6 +389,7 @@ static int add222_fetch (CACHEFILE cf, int UU(fd), CACHEKEY key, u_int32_t fullh
assert
((
long
)
extraargs
==
222
);
assert
((
long
)
extraargs
==
222
);
*
value
=
(
void
*
)((
unsigned
long
)
key
.
b
+
222L
);
*
value
=
(
void
*
)((
unsigned
long
)
key
.
b
+
222L
);
*
dirtyp
=
0
;
*
dirtyp
=
0
;
*
sizep
=
make_pair_attr
(
0
);
return
0
;
return
0
;
}
}
...
@@ -454,6 +456,7 @@ static void test_dirty_flush(CACHEFILE f,
...
@@ -454,6 +456,7 @@ static void test_dirty_flush(CACHEFILE f,
static
int
test_dirty_fetch
(
CACHEFILE
f
,
int
UU
(
fd
),
CACHEKEY
key
,
u_int32_t
fullhash
,
void
**
value_ptr
,
PAIR_ATTR
*
size_ptr
,
int
*
dirtyp
,
void
*
arg
)
{
static
int
test_dirty_fetch
(
CACHEFILE
f
,
int
UU
(
fd
),
CACHEKEY
key
,
u_int32_t
fullhash
,
void
**
value_ptr
,
PAIR_ATTR
*
size_ptr
,
int
*
dirtyp
,
void
*
arg
)
{
*
value_ptr
=
arg
;
*
value_ptr
=
arg
;
*
dirtyp
=
0
;
*
dirtyp
=
0
;
*
size_ptr
=
make_pair_attr
(
0
);
assert
(
fullhash
==
toku_cachetable_hash
(
f
,
key
));
assert
(
fullhash
==
toku_cachetable_hash
(
f
,
key
));
if
(
verbose
)
printf
(
"test_dirty_fetch %p %"
PRId64
" %p %ld %p
\n
"
,
f
,
key
.
b
,
*
value_ptr
,
size_ptr
->
size
,
arg
);
if
(
verbose
)
printf
(
"test_dirty_fetch %p %"
PRId64
" %p %ld %p
\n
"
,
f
,
key
.
b
,
*
value_ptr
,
size_ptr
->
size
,
arg
);
return
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