mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 03:28:01 +00:00
concurrency issues in MessageBuilder internal data
This commit is contained in:
@@ -348,6 +348,15 @@ public:
|
||||
void construct_buffer(Buffer& lhs, const T& rhs) {
|
||||
lhs = Buffer(rhs);
|
||||
}
|
||||
|
||||
MessageBuilder clone() const {
|
||||
return std::move(MessageBuilder(topic()).
|
||||
key(Buffer(key().get_data(), key().get_size())).
|
||||
payload(Buffer(payload().get_data(), payload().get_size())).
|
||||
timestamp(timestamp()).
|
||||
user_data(user_data()).
|
||||
internal(internal()));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user