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
d1bef799
Commit
d1bef799
authored
Dec 23, 2013
by
Leif Walsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed osx compilation breakage due to format strings
parent
9db054d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ft/tests/mempool-115.cc
ft/tests/mempool-115.cc
+4
-4
util/tests/test-frwlock-fair-writers.cc
util/tests/test-frwlock-fair-writers.cc
+1
-1
util/tests/test-rwlock-unfair-writers.cc
util/tests/test-rwlock-unfair-writers.cc
+1
-1
No files found.
ft/tests/mempool-115.cc
View file @
d1bef799
...
@@ -163,13 +163,13 @@ class bndata_bugfix_test {
...
@@ -163,13 +163,13 @@ class bndata_bugfix_test {
// like crazy, it should expose the bug
// like crazy, it should expose the bug
bn_data
*
bnd
=
BLB_DATA
(
&
sn
,
0
);
bn_data
*
bnd
=
BLB_DATA
(
&
sn
,
0
);
size_t
old_size
=
bnd
->
m_buffer_mempool
.
size
;
size_t
old_size
=
bnd
->
m_buffer_mempool
.
size
;
if
(
verbose
)
printf
(
"frag size: %
"
PRIu64
"
\n
"
,
bnd
->
m_buffer_mempool
.
frag_size
);
if
(
verbose
)
printf
(
"frag size: %
zu
\n
"
,
bnd
->
m_buffer_mempool
.
frag_size
);
if
(
verbose
)
printf
(
"size: %
"
PRIu64
"
\n
"
,
bnd
->
m_buffer_mempool
.
size
);
if
(
verbose
)
printf
(
"size: %
zu
\n
"
,
bnd
->
m_buffer_mempool
.
size
);
for
(
uint32_t
i
=
0
;
i
<
1000000
;
i
++
)
{
for
(
uint32_t
i
=
0
;
i
<
1000000
;
i
++
)
{
le_overwrite
(
bnd
,
0
,
"a"
,
2
,
"aval"
,
5
);
le_overwrite
(
bnd
,
0
,
"a"
,
2
,
"aval"
,
5
);
}
}
if
(
verbose
)
printf
(
"frag size: %
"
PRIu64
"
\n
"
,
bnd
->
m_buffer_mempool
.
frag_size
);
if
(
verbose
)
printf
(
"frag size: %
zu
\n
"
,
bnd
->
m_buffer_mempool
.
frag_size
);
if
(
verbose
)
printf
(
"size: %
"
PRIu64
"
\n
"
,
bnd
->
m_buffer_mempool
.
size
);
if
(
verbose
)
printf
(
"size: %
zu
\n
"
,
bnd
->
m_buffer_mempool
.
size
);
size_t
new_size
=
bnd
->
m_buffer_mempool
.
size
;
size_t
new_size
=
bnd
->
m_buffer_mempool
.
size
;
// just a crude test to make sure we did not grow unbounded.
// just a crude test to make sure we did not grow unbounded.
// if this assert ever fails, revisit the code and see what is going
// if this assert ever fails, revisit the code and see what is going
...
...
util/tests/test-frwlock-fair-writers.cc
View file @
d1bef799
...
@@ -22,7 +22,7 @@ static void *t1_func(void *arg) {
...
@@ -22,7 +22,7 @@ static void *t1_func(void *arg) {
rwlock
.
write_unlock
();
rwlock
.
write_unlock
();
toku_mutex_unlock
(
&
rwlock_mutex
);
toku_mutex_unlock
(
&
rwlock_mutex
);
}
}
printf
(
"%lu %d
\n
"
,
pthread_self
(),
i
);
printf
(
"%lu %d
\n
"
,
(
unsigned
long
)
pthread_self
(),
i
);
return
arg
;
return
arg
;
}
}
...
...
util/tests/test-rwlock-unfair-writers.cc
View file @
d1bef799
...
@@ -18,7 +18,7 @@ static void *t1_func(void *arg) {
...
@@ -18,7 +18,7 @@ static void *t1_func(void *arg) {
r
=
pthread_rwlock_unlock
(
&
rwlock
);
r
=
pthread_rwlock_unlock
(
&
rwlock
);
assert
(
r
==
0
);
assert
(
r
==
0
);
}
}
printf
(
"%lu %d
\n
"
,
pthread_self
(),
i
);
printf
(
"%lu %d
\n
"
,
(
unsigned
long
)
pthread_self
(),
i
);
return
arg
;
return
arg
;
}
}
...
...
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