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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c99ee6b9
Commit
c99ee6b9
authored
Dec 21, 2013
by
Leif Walsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some invalid parameter passing discovered by clang Tokutek/mongo#869
TXNID_NONE is not the same as (TOKUTXN) 0
parent
5faf2143
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
ft/tests/ftloader-test-bad-generate.cc
ft/tests/ftloader-test-bad-generate.cc
+1
-1
ft/tests/ftloader-test-extractor-errors.cc
ft/tests/ftloader-test-extractor-errors.cc
+1
-1
ft/tests/ftloader-test-extractor.cc
ft/tests/ftloader-test-extractor.cc
+1
-1
ft/tests/ftloader-test-merge-files-dbufio.cc
ft/tests/ftloader-test-merge-files-dbufio.cc
+1
-1
ft/tests/ftloader-test-open.cc
ft/tests/ftloader-test-open.cc
+1
-1
No files found.
ft/tests/ftloader-test-bad-generate.cc
View file @
c99ee6b9
...
...
@@ -170,7 +170,7 @@ static void test_extractor(int nrows, int nrowsets, bool expect_fail) {
}
FTLOADER
loader
;
r
=
toku_ft_loader_open
(
&
loader
,
NULL
,
generate
,
NULL
,
N
,
brts
,
dbs
,
fnames
,
compares
,
"tempXXXXXX"
,
ZERO_LSN
,
TXNID_NONE
,
true
,
0
,
false
);
r
=
toku_ft_loader_open
(
&
loader
,
NULL
,
generate
,
NULL
,
N
,
brts
,
dbs
,
fnames
,
compares
,
"tempXXXXXX"
,
ZERO_LSN
,
nullptr
,
true
,
0
,
false
);
assert
(
r
==
0
);
struct
rowset
*
rowset
[
nrowsets
];
...
...
ft/tests/ftloader-test-extractor-errors.cc
View file @
c99ee6b9
...
...
@@ -180,7 +180,7 @@ static void test_extractor(int nrows, int nrowsets, bool expect_fail, const char
sprintf
(
temp
,
"%s/%s"
,
testdir
,
"tempXXXXXX"
);
FTLOADER
loader
;
r
=
toku_ft_loader_open
(
&
loader
,
NULL
,
generate
,
NULL
,
N
,
brts
,
dbs
,
fnames
,
compares
,
"tempXXXXXX"
,
ZERO_LSN
,
TXNID_NONE
,
true
,
0
,
false
);
r
=
toku_ft_loader_open
(
&
loader
,
NULL
,
generate
,
NULL
,
N
,
brts
,
dbs
,
fnames
,
compares
,
"tempXXXXXX"
,
ZERO_LSN
,
nullptr
,
true
,
0
,
false
);
assert
(
r
==
0
);
struct
rowset
*
rowset
[
nrowsets
];
...
...
ft/tests/ftloader-test-extractor.cc
View file @
c99ee6b9
...
...
@@ -402,7 +402,7 @@ static void test_extractor(int nrows, int nrowsets, const char *testdir) {
sprintf
(
temp
,
"%s/%s"
,
testdir
,
"tempXXXXXX"
);
FTLOADER
loader
;
r
=
toku_ft_loader_open
(
&
loader
,
NULL
,
generate
,
NULL
,
N
,
brts
,
dbs
,
fnames
,
compares
,
temp
,
ZERO_LSN
,
TXNID_NONE
,
true
,
0
,
false
);
r
=
toku_ft_loader_open
(
&
loader
,
NULL
,
generate
,
NULL
,
N
,
brts
,
dbs
,
fnames
,
compares
,
temp
,
ZERO_LSN
,
nullptr
,
true
,
0
,
false
);
assert
(
r
==
0
);
struct
rowset
*
rowset
[
nrowsets
];
...
...
ft/tests/ftloader-test-merge-files-dbufio.cc
View file @
c99ee6b9
...
...
@@ -412,7 +412,7 @@ static void test (const char *directory, bool is_error) {
bt_compare_functions
,
"tempxxxxxx"
,
*
lsnp
,
TXNID_NONE
,
true
,
0
,
false
);
nullptr
,
true
,
0
,
false
);
assert
(
r
==
0
);
}
...
...
ft/tests/ftloader-test-open.cc
View file @
c99ee6b9
...
...
@@ -143,7 +143,7 @@ static void test_loader_open(int ndbs) {
for
(
i
=
0
;
;
i
++
)
{
set_my_malloc_trigger
(
i
+
1
);
r
=
toku_ft_loader_open
(
&
loader
,
NULL
,
NULL
,
NULL
,
ndbs
,
brts
,
dbs
,
fnames
,
compares
,
""
,
ZERO_LSN
,
TXNID_NONE
,
true
,
0
,
false
);
r
=
toku_ft_loader_open
(
&
loader
,
NULL
,
NULL
,
NULL
,
ndbs
,
brts
,
dbs
,
fnames
,
compares
,
""
,
ZERO_LSN
,
nullptr
,
true
,
0
,
false
);
if
(
r
==
0
)
break
;
}
...
...
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