You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/01/07 03:34:53 UTC

[GitHub] ShannonDing closed pull request #55: Properly construct DefaultMQPushConsumer

ShannonDing closed pull request #55: Properly construct DefaultMQPushConsumer
URL: https://github.com/apache/rocketmq-client-cpp/pull/55
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/build.sh b/build.sh
index 2261238e..32ebe9ab 100755
--- a/build.sh
+++ b/build.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/bin/bash
 
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
diff --git a/src/consumer/DefaultMQPushConsumer.cpp b/src/consumer/DefaultMQPushConsumer.cpp
index 159e0ff9..2e78ebcd 100644
--- a/src/consumer/DefaultMQPushConsumer.cpp
+++ b/src/consumer/DefaultMQPushConsumer.cpp
@@ -202,10 +202,13 @@ namespace rocketmq {
     DefaultMQPushConsumer::DefaultMQPushConsumer(const string &groupname)
             : m_consumeFromWhere(CONSUME_FROM_LAST_OFFSET),
               m_pOffsetStore(NULL),
+              m_pRebalance(NULL),
               m_pPullAPIWrapper(NULL),
+              m_consumerService(NULL),
               m_pMessageListener(NULL),
               m_consumeMessageBatchMaxSize(1),
-              m_maxMsgCacheSize(1000) {
+              m_maxMsgCacheSize(1000),
+              m_pullmsgQueue(NULL) {
         //<!set default group name;
         string gname = groupname.empty() ? DEFAULT_CONSUMER_GROUP : groupname;
         setGroupName(gname);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services