Little fixes

This commit is contained in:
XieHan
2021-06-23 00:46:37 +08:00
parent 48635daf07
commit 85ace7030d
15 changed files with 21 additions and 9 deletions
+1
View File
@@ -1606,3 +1606,4 @@ KafkaBrokerList *WFKafkaClient::get_broker_list()
{
return this->member->broker_list;
}
+1
View File
@@ -153,3 +153,4 @@ private:
};
#endif
+1
View File
@@ -633,3 +633,4 @@ __WFKafkaTask *__WFKafkaTaskFactory::create_kafka_task(const char *host,
task->set_keep_alive(KAFKA_KEEPALIVE_DEFAULT);
return task;
}
+1
View File
@@ -52,3 +52,4 @@ public:
const std::string& info,
__kafka_callback_t callback);
};
+1
View File
@@ -700,3 +700,4 @@ const EndpointAddress *UPSManualPolicy::another_strategy(const ParsedURI& uri,
uri.fragment ? uri.fragment : "");
return this->consistent_hash_with_group(hash_value);
}
+1
View File
@@ -3834,3 +3834,4 @@ int KafkaResponse::append(const void *buf, size_t *size)
}
}
+1
View File
@@ -264,3 +264,4 @@ private:
}
#endif
+1
View File
@@ -118,3 +118,4 @@ void KafkaResult::fetch_records(std::vector<std::vector<KafkaRecord *>>& records
}
}
+1
View File
@@ -62,3 +62,4 @@ private:
}
#endif
+6 -5
View File
@@ -426,6 +426,11 @@ std::string RedisValue::debug_string() const
return ret;
}
RedisValue::~RedisValue()
{
free_data();
}
RedisMessage::RedisMessage():
parser_(new redis_parser_t),
stream_(new EncodeStream),
@@ -445,11 +450,6 @@ RedisMessage::~RedisMessage()
}
}
RedisValue::~RedisValue()
{
free_data();
}
RedisMessage::RedisMessage(RedisMessage&& move) :
ProtocolMessage(std::move(move))
{
@@ -696,3 +696,4 @@ bool RedisResponse::set_result(const RedisValue& value)
}
}
+1
View File
@@ -321,3 +321,4 @@ inline void RedisResponse::get_result(RedisValue& value) const
}
#endif
+1
View File
@@ -1234,3 +1234,4 @@ int kafka_sasl_set_password(const char *password, kafka_config_t *conf)
conf->password = t;
return 0;
}
+1
View File
@@ -487,3 +487,4 @@ int kafka_sasl_set_password(const char *passwd, kafka_config_t *conf);
#endif
#endif
+1 -1
View File
@@ -28,9 +28,9 @@ set(TUTORIAL_LIST
tutorial-04-http_echo_server
tutorial-05-http_proxy
tutorial-06-parallel_wget
tutorial-09-http_file_server
tutorial-07-sort_task
tutorial-08-matrix_multiply
tutorial-09-http_file_server
tutorial-11-graph_task
)
+2 -3
View File
@@ -9,7 +9,6 @@ CMAKE3 := $(shell if which cmake3>/dev/null ; then echo cmake3; else echo cmake;
KAFKA ?= n
MYSQL ?= y
REDIS ?= y
UPSTREAM ?= y
.PHONY: $(ALL_TARGETS)
@@ -17,9 +16,9 @@ all:
mkdir -p $(BUILD_DIR)
ifeq ($(DEBUG),y)
cd $(BUILD_DIR) && $(CMAKE3) -D CMAKE_BUILD_TYPE=Debug -D KAFKA=$(KAFKA) -D MYSQL=$(MYSQL) -D REDIS=$(REDIS) -D UPSTREAM=$(UPSTREAM) $(ROOT_DIR)
cd $(BUILD_DIR) && $(CMAKE3) -D CMAKE_BUILD_TYPE=Debug -D KAFKA=$(KAFKA) -D MYSQL=$(MYSQL) -D REDIS=$(REDIS) $(ROOT_DIR)
else
cd $(BUILD_DIR) && $(CMAKE3) -D KAFKA=$(KAFKA) -D MYSQL=$(MYSQL) -D REDIS=$(REDIS) -D UPSTREAM=$(UPSTREAM) $(ROOT_DIR)
cd $(BUILD_DIR) && $(CMAKE3) -D KAFKA=$(KAFKA) -D MYSQL=$(MYSQL) -D REDIS=$(REDIS) $(ROOT_DIR)
endif
make -C $(BUILD_DIR) -f Makefile