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
c86be630
Commit
c86be630
authored
Nov 30, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Maria - fixes for gcc -ansi (no //)
storage/maria/lockman.c: no // storage/maria/trnman.c: no //
parent
9fcc34b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
storage/maria/lockman.c
storage/maria/lockman.c
+6
-5
storage/maria/trnman.c
storage/maria/trnman.c
+2
-1
No files found.
storage/maria/lockman.c
View file @
c86be630
//
TODO - allocate everything from dynarrays !!! (benchmark)
//
TODO instant duration locks
//
automatically place S instead of LS if possible
#warning
TODO - allocate everything from dynarrays !!! (benchmark)
#warning
TODO instant duration locks
#warning
automatically place S instead of LS if possible
/* Copyright (C) 2006 MySQL AB
This program is free software; you can redistribute it and/or modify
...
...
@@ -217,7 +217,8 @@ typedef struct lockman_lock {
uint64
resource
;
struct
lockman_lock
*
lonext
;
intptr
volatile
link
;
uint32
hashnr
;
// TODO - remove hashnr from LOCK
uint32
hashnr
;
#warning TODO - remove hashnr from LOCK
uint16
loid
;
uchar
lock
;
/* sizeof(uchar) <= sizeof(enum) */
uchar
flags
;
...
...
@@ -429,7 +430,7 @@ static int lockinsert(LOCK * volatile *head, LOCK *node, LF_PINS *pins,
cursor
.
upgrade_from
->
flags
|=
IGNORE_ME
;
#warning is this OK ? if a reader has already read upgrade_from, \
it may find it conflicting with node :(
//#error
another bug - see the last test from test_lockman_simple()
#warning
another bug - see the last test from test_lockman_simple()
}
}
while
(
res
==
REPEAT_ONCE_MORE
);
...
...
storage/maria/trnman.c
View file @
c86be630
...
...
@@ -338,7 +338,8 @@ void trnman_end_trn(TRN *trn, my_bool commit)
those lists, and thus nobody may want to free them. Now we don't
need a mutex to access free_me list
*/
while
(
free_me
)
// XXX send them to the purge thread
while
(
free_me
)
#warning XXX send them to the purge thread
{
TRN
*
t
=
free_me
;
free_me
=
free_me
->
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