Skip to content

Commit

Permalink
C++ Client - fix for seeing correct msg rate in broker stats (apache#462
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jai1 authored and merlimat committed Jun 9, 2017
1 parent 0d0c9ed commit 0ddb5fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pulsar-client-cpp/lib/Commands.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ PairSharedBuffer Commands::newSend(SharedBuffer& headers, BaseCommand& cmd,
CommandSend* send = cmd.mutable_send();
send->set_producer_id(producerId);
send->set_sequence_id(sequenceId);
if (metadata.has_num_messages_in_batch()) {
send->set_num_messages(metadata.num_messages_in_batch());
}

// / Wire format
// [TOTAL_SIZE] [CMD_SIZE][CMD] [MAGIC_NUMBER][CHECKSUM] [METADATA_SIZE][METADATA] [PAYLOAD]
Expand Down

0 comments on commit 0ddb5fe

Please sign in to comment.