From e4a5d1e0c9463018fb679c960c77452af38fa1d9 Mon Sep 17 00:00:00 2001 From: messense Date: Mon, 7 Jan 2019 11:04:05 +0800 Subject: [PATCH 1/2] Properly construct DefaultMQPushConsumer --- src/consumer/DefaultMQPushConsumer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/consumer/DefaultMQPushConsumer.cpp b/src/consumer/DefaultMQPushConsumer.cpp index 159e0ff92..2e78ebcdd 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) { // Date: Mon, 7 Jan 2019 11:09:35 +0800 Subject: [PATCH 2/2] Fix bash path in build.sh --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 2261238ea..32ebe9ab7 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