mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-10-31 18:47:48 +00:00 
			
		
		
		
	Added compile time check for store_offsets() api
This commit is contained in:
		| @@ -291,7 +291,7 @@ public: | ||||
|      * \return The topic partition list | ||||
|      */ | ||||
|     TopicPartitionList get_offsets_position(const TopicPartitionList& topic_partitions) const; | ||||
|      | ||||
| #if (RD_KAFKA_VERSION >= RD_KAFKA_STORE_OFFSETS_SUPPORT_VERSION) | ||||
|     /** | ||||
|      * \brief Stores the offsets on the currently assigned topic/partitions (legacy). | ||||
|      * | ||||
| @@ -312,7 +312,7 @@ public: | ||||
|      * \note When using this API it's recommended to set enable.auto.offset.store=false and enable.auto.commit=true. | ||||
|      */ | ||||
|     void store_offsets(const TopicPartitionList& topic_partitions) const; | ||||
|      | ||||
| #endif | ||||
|     /** | ||||
|      * \brief Stores the offset for this message (legacy). | ||||
|      * | ||||
|   | ||||
| @@ -50,5 +50,6 @@ | ||||
| #define RD_KAFKA_MESSAGE_LATENCY_SUPPORT_VERSION 0x000b0000 //v0.11.0.00 | ||||
| #define RD_KAFKA_EVENT_STATS_SUPPORT_VERSION 0x000b0000 //v0.11.0.00 | ||||
| #define RD_KAFKA_MESSAGE_STATUS_SUPPORT_VERSION 0x01000002 //v1.0.0.02 | ||||
| #define RD_KAFKA_STORE_OFFSETS_SUPPORT_VERSION 0x00090501 //v0.9.5.01 | ||||
|  | ||||
| #endif // CPPKAFKA_MACROS_H | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 accelerated
					accelerated