projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: consumerd: reduce duplication of stream output close code
[lttng-tools.git]
/
src
/
common
/
ust-consumer
/
ust-consumer.cpp
diff --git
a/src/common/ust-consumer/ust-consumer.cpp
b/src/common/ust-consumer/ust-consumer.cpp
index b08cafdff9da6c217fb2702a7ad0e55379514de1..872bc1abf8f89c322e217b365138e88c5341d7f8 100644
(file)
--- a/
src/common/ust-consumer/ust-consumer.cpp
+++ b/
src/common/ust-consumer/ust-consumer.cpp
@@
-1206,7
+1206,7
@@
static int snapshot_channel(struct lttng_consumer_channel *channel,
}
/* Simply close the stream so we can use it on the next snapshot. */
}
/* Simply close the stream so we can use it on the next snapshot. */
- consumer_stream_close(stream);
+ consumer_stream_close
_output
(stream);
pthread_mutex_unlock(&stream->lock);
}
pthread_mutex_unlock(&stream->lock);
}
@@
-1218,7
+1218,7
@@
error_put_subbuf:
ERR("Snapshot lttng_ust_ctl_put_subbuf");
}
error_close_stream:
ERR("Snapshot lttng_ust_ctl_put_subbuf");
}
error_close_stream:
- consumer_stream_close(stream);
+ consumer_stream_close
_output
(stream);
error_unlock:
pthread_mutex_unlock(&stream->lock);
rcu_read_unlock();
error_unlock:
pthread_mutex_unlock(&stream->lock);
rcu_read_unlock();
This page took
0.023563 seconds
and
4
git commands to generate.