Shoothzj commented on code in PR #277:
URL: https://github.com/apache/pulsar-client-cpp/pull/277#discussion_r1213380267
##########
lib/MessageImpl.cc:
##########
@@ -20,7 +20,8 @@
namespace pulsar {
-MessageImpl::MessageImpl() : metadata(), payload(), messageId(), cnx_(0),
topicName_(), redeliveryCount_() {}
+MessageImpl::MessageImpl()
+ : metadata(), brokerEntryMetadata(), payload(), messageId(), cnx_(0),
topicName_(), redeliveryCount_() {}
Review Comment:
@BewareMyPower removed
##########
lib/Message.cc:
##########
@@ -136,6 +140,15 @@ void Message::setMessageId(const MessageId& messageID)
const {
return;
}
+const int64_t Message::getIndex() const {
+ if (!impl_) {
+ return -1;
+ } else {
+ // casting uint64_t to int64_t, server definition ensures that's safe
+ return static_cast<int64_t>(impl_->brokerEntryMetadata.index());
Review Comment:
@BewareMyPower Fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]