Skip to content

Commit f05f8ef

Browse files
committed
fixup the fixup of the fixup
1 parent 6c7858f commit f05f8ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/message.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ static void qd_message_receive_cutthrough(qd_message_t *in_msg, pn_delivery_t *d
15821582

15831583
// Check for rx complete, error, or no data available:
15841584

1585-
if (rc < 0 || !pn_delivery_partial(delivery)) {
1585+
if (rc < 0) {
15861586
if (pn_delivery_aborted(delivery)) {
15871587
qd_message_set_aborted(in_msg);
15881588
}
@@ -1892,7 +1892,9 @@ static void qd_message_send_cut_through(qd_message_pvt_t *msg, qd_message_conten
18921892
while (!!buf) {
18931893
DEQ_REMOVE_HEAD(content->uct_slots[use_slot]);
18941894
if (!IS_ATOMIC_FLAG_SET(&content->aborted)) {
1895-
pn_link_send(pnl, (char*) qd_buffer_base(buf), qd_buffer_size(buf));
1895+
ssize_t sent = pn_link_send(pnl, (char*) qd_buffer_base(buf), qd_buffer_size(buf));
1896+
(void) sent;
1897+
assert(sent == qd_buffer_size(buf));
18961898
}
18971899
qd_buffer_free(buf);
18981900
buf = DEQ_HEAD(content->uct_slots[use_slot]);
@@ -3332,10 +3334,8 @@ int qd_message_consume_buffers(qd_message_t *stream, qd_buffer_list_t *buffers,
33323334

33333335
while (count < limit && !empty) {
33343336
uint32_t useSlot = sys_atomic_get(&content->uct_consume_slot);
3335-
qd_log(LOG_MESSAGE, QD_LOG_DEBUG, "qd_message_consume_buffers useSlot=%"PRIu32"", useSlot);
33363337
while (count < limit && !DEQ_IS_EMPTY(content->uct_slots[useSlot])) {
33373338
qd_buffer_t *buf = DEQ_HEAD(content->uct_slots[useSlot]);
3338-
qd_log(LOG_MESSAGE, QD_LOG_DEBUG, "qd_message_consume_buffers buf size=%zu", qd_buffer_size(buf));
33393339
DEQ_REMOVE_HEAD(content->uct_slots[useSlot]);
33403340
DEQ_INSERT_TAIL(*buffers, buf);
33413341
count++;

0 commit comments

Comments
 (0)