diff options
| author | fumingwei <[email protected]> | 2023-09-04 10:02:27 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2023-09-04 10:02:27 +0800 |
| commit | 9f8b2c5a53ef24c177a21b433fef815b1f372de5 (patch) | |
| tree | 62626d95cfa737ef248ed6ab7d606df0a0cbf1ea | |
| parent | 81d127144e499c451d0bdb452adb7fd22cd080c0 (diff) | |
bugfix:修改在centos7编译过程中遍历vector失败问题v3.0.14
| -rw-r--r-- | src/line_protocol_output.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/line_protocol_output.cpp b/src/line_protocol_output.cpp index c5ef544..9110205 100644 --- a/src/line_protocol_output.cpp +++ b/src/line_protocol_output.cpp @@ -504,7 +504,7 @@ int line_protocol_dynamic_metric_output(struct fieldstat_dynamic_instance *insta } pthread_spin_unlock(instance->uthash_locks + i); - for (auto it = line_buf_to_send.begin(); it != line_buf_to_send.end(); ++it) + for (std::vector<std::string>::iterator it = line_buf_to_send.begin(); it != line_buf_to_send.end(); ++it) { const std::string& str = *it; send_line_buf(&instance->line_protocol_output, str.c_str(), str.length()); |
