Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
04b2feef
Commit
04b2feef
authored
Nov 23, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdb2: enable transactions in tdbtorture
parent
554f3856
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
ccan/tdb2/tools/tdbtorture.c
ccan/tdb2/tools/tdbtorture.c
+3
-5
No files found.
ccan/tdb2/tools/tdbtorture.c
View file @
04b2feef
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
#define DELETE_PROB 8
#define DELETE_PROB 8
#define STORE_PROB 4
#define STORE_PROB 4
#define APPEND_PROB 6
#define APPEND_PROB 6
//
#define TRANSACTION_PROB 10
#define TRANSACTION_PROB 10
//
#define TRANSACTION_PREPARE_PROB 2
#define TRANSACTION_PREPARE_PROB 2
#define LOCKSTORE_PROB 5
#define LOCKSTORE_PROB 5
#define TRAVERSE_PROB 20
#define TRAVERSE_PROB 20
#define TRAVERSE_READ_PROB 20
#define TRAVERSE_READ_PROB 20
...
@@ -171,9 +171,7 @@ static void addrec_db(void)
...
@@ -171,9 +171,7 @@ static void addrec_db(void)
}
}
if
(
in_traverse
==
0
&&
in_transaction
&&
random
()
%
TRANSACTION_PROB
==
0
)
{
if
(
in_traverse
==
0
&&
in_transaction
&&
random
()
%
TRANSACTION_PROB
==
0
)
{
if
(
tdb_transaction_cancel
(
db
)
!=
0
)
{
tdb_transaction_cancel
(
db
);
fatal
(
"tdb_transaction_cancel failed"
);
}
in_transaction
--
;
in_transaction
--
;
goto
next
;
goto
next
;
}
}
...
...
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