Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ds-ws18
yfs-lab
Commits
34dcdd3f
Commit
34dcdd3f
authored
Nov 03, 2014
by
Anjo Vahldiek
Browse files
remove compile warnings
parent
820edd8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
lock_client.cc
View file @
34dcdd3f
...
...
@@ -30,10 +30,12 @@ lock_client::stat(lock_protocol::lockid_t lid)
lock_protocol
::
status
lock_client
::
acquire
(
lock_protocol
::
lockid_t
lid
)
{
return
lock_protocol
::
RPCERR
;
}
lock_protocol
::
status
lock_client
::
release
(
lock_protocol
::
lockid_t
lid
)
{
return
lock_protocol
::
RPCERR
;
}
rpc/rpc.cc
View file @
34dcdd3f
...
...
@@ -412,7 +412,7 @@ rpcs::updatestat(unsigned int proc)
if
(
clt
->
second
.
size
()
>
maxrep
)
maxrep
=
clt
->
second
.
size
();
}
jsl_log
(
JSL_DBG_1
,
"REPLY WINDOW: clients %d total reply %d max per client %d
\n
"
,
jsl_log
(
JSL_DBG_1
,
"REPLY WINDOW: clients %
l
d total reply %d max per client %d
\n
"
,
reply_window_
.
size
(),
totalrep
,
maxrep
);
curr_counts_
=
counting_
;
}
...
...
rpc/rpctest.cc
View file @
34dcdd3f
...
...
@@ -359,7 +359,7 @@ concurrent_test(int nt)
printf
(
"start concurrent_test (%d threads) ..."
,
nt
);
pthread_t
th
[
nt
];
for
(
int
i
=
0
;
i
<
nt
;
i
++
){
for
(
long
int
i
=
0
;
i
<
nt
;
i
++
){
ret
=
pthread_create
(
&
th
[
i
],
&
attr
,
client1
,
(
void
*
)
i
);
assert
(
ret
==
0
);
}
...
...
@@ -378,7 +378,7 @@ garbage_collection_test(int nt)
printf
(
"start garbage_collection_test ..."
);
pthread_t
th
[
nt
];
for
(
int
i
=
0
;
i
<
nt
;
i
++
){
for
(
long
int
i
=
0
;
i
<
nt
;
i
++
){
ret
=
pthread_create
(
&
th
[
i
],
&
attr
,
client4
,
(
void
*
)
i
);
assert
(
ret
==
0
);
}
...
...
@@ -411,7 +411,7 @@ lossy_test()
int
nt
=
1
;
pthread_t
th
[
nt
];
for
(
int
i
=
0
;
i
<
nt
;
i
++
){
for
(
long
int
i
=
0
;
i
<
nt
;
i
++
){
ret
=
pthread_create
(
&
th
[
i
],
&
attr
,
client2
,
(
void
*
)
i
);
assert
(
ret
==
0
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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