Merge pull request #1695 from collectd/feature/fix-keyless-kafka-produce
authorPierre-Yves Ritschard <pyr@spootnik.org>
Wed, 4 May 2016 15:28:17 +0000 (17:28 +0200)
committerPierre-Yves Ritschard <pyr@spootnik.org>
Wed, 4 May 2016 15:28:17 +0000 (17:28 +0200)
write_kafka: reliability when no key provided

src/daemon/plugin.h

index 1e4b3d1..7398227 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * collectd - src/plugin.h
+ * collectd - src/daemon/plugin.h
  * Copyright (C) 2005-2014  Florian octo Forster
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
@@ -39,7 +39,9 @@
 
 #define PLUGIN_FLAGS_GLOBAL 0x0001
 
-#define DATA_MAX_NAME_LEN 64
+#ifndef DATA_MAX_NAME_LEN
+# define DATA_MAX_NAME_LEN 64
+#endif
 
 #define DS_TYPE_COUNTER  0
 #define DS_TYPE_GAUGE    1