Merge pull request #2326 from ZhouBox/main

write:check custom
This commit is contained in:
fengzeroz
2024-11-28 14:57:59 +08:00
committed by GitHub
+6
View File
@@ -1190,6 +1190,12 @@ int is_value_in_range(neu_type_e tag_type, int64_t value, double value_d,
} else {
return NEU_ERR_SUCCESS;
}
case NEU_TYPE_CUSTOM:
if (write_type != NEU_TYPE_CUSTOM) {
return NEU_ERR_PLUGIN_TAG_TYPE_MISMATCH;
} else {
return NEU_ERR_SUCCESS;
}
default:
return NEU_ERR_SUCCESS;
}