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
bef65f33
Commit
bef65f33
authored
Oct 23, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trnman_destroy returns void, remove unused variables
storage/maria/trnman.h: trnman_destroy returns void
parent
32739cbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
storage/maria/trnman.c
storage/maria/trnman.c
+4
-5
storage/maria/trnman.h
storage/maria/trnman.h
+1
-1
No files found.
storage/maria/trnman.c
View file @
bef65f33
...
...
@@ -124,7 +124,7 @@ int trnman_init()
this could only be called in the "idle" state - no transaction can be
running. See asserts below.
*/
int
trnman_destroy
()
void
trnman_destroy
()
{
DBUG_ASSERT
(
trid_to_committed_trn
.
count
==
0
);
DBUG_ASSERT
(
trnman_active_transactions
==
0
);
...
...
@@ -265,7 +265,6 @@ TRN *trnman_new_trn(pthread_mutex_t *mutex, pthread_cond_t *cond)
*/
void
trnman_end_trn
(
TRN
*
trn
,
my_bool
commit
)
{
int
res
;
TRN
*
free_me
=
0
;
LF_PINS
*
pins
=
trn
->
pins
;
...
...
@@ -303,8 +302,9 @@ void trnman_end_trn(TRN *trn, my_bool commit)
*/
if
(
commit
&&
active_list_min
.
next
!=
&
active_list_max
)
{
trn
->
commit_trid
=
global_trid_generator
;
int
res
;
trn
->
commit_trid
=
global_trid_generator
;
trn
->
next
=
&
committed_list_max
;
trn
->
prev
=
committed_list_max
.
prev
;
committed_list_max
.
prev
=
trn
->
prev
->
next
=
trn
;
...
...
@@ -330,11 +330,10 @@ void trnman_end_trn(TRN *trn, my_bool commit)
while
(
free_me
)
// XXX send them to the purge thread
{
int
res
;
TRN
*
t
=
free_me
;
free_me
=
free_me
->
next
;
res
=
lf_hash_delete
(
&
trid_to_committed_trn
,
pins
,
&
t
->
trid
,
sizeof
(
TrID
));
lf_hash_delete
(
&
trid_to_committed_trn
,
pins
,
&
t
->
trid
,
sizeof
(
TrID
));
trnman_free_trn
(
t
);
}
...
...
storage/maria/trnman.h
View file @
bef65f33
...
...
@@ -44,7 +44,7 @@ struct st_transaction
extern
uint
trnman_active_transactions
,
trnman_allocated_transactions
;
int
trnman_init
(
void
);
int
trnman_destroy
(
void
);
void
trnman_destroy
(
void
);
TRN
*
trnman_new_trn
(
pthread_mutex_t
*
mutex
,
pthread_cond_t
*
cond
);
void
trnman_end_trn
(
TRN
*
trn
,
my_bool
commit
);
#define trnman_commit_trn(T) trnman_end_trn(T, TRUE)
...
...
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