Skip to content

Commit

Permalink
fix errno report in blobwriter, stop warning about repeat subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
bschwal authored and tom95858 committed Dec 21, 2024
1 parent 5120368 commit c8d6b2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ldms/src/ldmsd/ldmsd_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,11 @@ ldmsd_stream_subscribe(const char *stream_name,
}
LIST_FOREACH(cc, &s->s_c_list, c_ent) {
if (cc->c_cb_fn == cb_fn && cc->c_ctxt == ctxt) {
#if 0
/* this is a high frequency common case */
msglog("The client %p is already subscribed to "
"stream %s\n", cc, stream_name);
#endif
errno = EEXIST;
pthread_mutex_unlock(&s->s_lock);
goto err_1;
Expand Down
1 change: 1 addition & 0 deletions ldms/src/sampler/blob_stream/blob_stream_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ static void fclose_and_spool(FILE* *f, char* *fname, int final)
sprintf(rbuf, "%s/spool/%s", dirn, base);
err = rename(*fname, rbuf);
if (err) {
err = errno;
msglog(LDMSD_LERROR, PNAME
": rename_output: failed rename(%s, %s):"
" %s\n", *fname, rbuf, STRERROR(err));
Expand Down

0 comments on commit c8d6b2f

Please sign in to comment.