fellow_log: Fix a pthread_cond_wait (minor)

Spotted by Coverity, CID#486184
parent 1dfca806
...@@ -6929,8 +6929,11 @@ fellow_log_dle_submit(struct fellow_fd *ffd, ...@@ -6929,8 +6929,11 @@ fellow_log_dle_submit(struct fellow_fd *ffd,
ffd->logbuf->dle_stats.obj_del_thin) ffd->logbuf->dle_stats.obj_del_thin)
>= logbuffer_max_obj_chg(ffd->logbuf)) { >= logbuffer_max_obj_chg(ffd->logbuf)) {
if (ffd->rewriting) { if (ffd->rewriting) {
AZ(pthread_cond_wait(&ffd->new_logbuf_cond, while (ffd->rewriting) {
&ffd->logmtx)); AZ(pthread_cond_wait(
&ffd->new_logbuf_cond,
&ffd->logmtx));
}
} }
else else
fellow_logwatcher_kick_locked(ffd); fellow_logwatcher_kick_locked(ffd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment