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
c6aade3b
Commit
c6aade3b
authored
Feb 26, 2008
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
txn_abort does not abort. address #448
git-svn-id:
file:///svn/tokudb@2411
c7de825b-a66e-492c-adef-691d508d4ae1
parent
8fc142a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/tests/test_txn_abort5.c
src/tests/test_txn_abort5.c
+10
-0
No files found.
src/tests/test_txn_abort5.c
View file @
c6aade3b
...
...
@@ -44,6 +44,16 @@ void test_txn_abort(int n) {
#else
if
(
r
!=
0
)
printf
(
"%s:%d:abort:%d
\n
"
,
__FILE__
,
__LINE__
,
r
);
#endif
/* walk the db, should be empty */
r
=
env
->
txn_begin
(
env
,
0
,
&
txn
,
0
);
assert
(
r
==
0
);
DBC
*
cursor
;
r
=
db
->
cursor
(
db
,
txn
,
&
cursor
,
0
);
assert
(
r
==
0
);
DBT
key
;
memset
(
&
key
,
0
,
sizeof
key
);
DBT
val
;
memset
(
&
val
,
0
,
sizeof
val
);
r
=
cursor
->
c_get
(
cursor
,
&
key
,
&
val
,
DB_FIRST
);
assert
(
r
==
DB_NOTFOUND
);
r
=
cursor
->
c_close
(
cursor
);
assert
(
r
==
0
);
r
=
txn
->
commit
(
txn
,
0
);
r
=
db
->
close
(
db
,
0
);
assert
(
r
==
0
);
r
=
env
->
close
(
env
,
0
);
assert
(
r
==
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