Skip to content

Commit cf9eebe

Browse files
committed
lua: fix return value documentation for record and code 2
1 parent bc83de6 commit cf9eebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipeline/filters/lua.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Each callback must return three values:
117117
| ---- | --------- | ----------- |
118118
| `code` | integer | The code return value represents the result and further actions that might follow. If `code` equals `-1`, this means that the record will be dropped. If `code` equals `0`, the record won't be modified. Otherwise, if `code` equals `1`, this means the original timestamp and record have been modified, so it must be replaced by the returned values from `timestamp` (second return value) and `record` (third return value). If `code` equals `2`, this means the original timestamp won't be modified and the record has been modified, so it must be replaced by the returned values from `record` (third return value). |
119119
| `timestamp` | double | If `code` equals `1`, the original record timestamp will be replaced with this new value. |
120-
| `record` | table | If `code` equals `1`, the original record information will be replaced with this new value. The `record` value must be a valid Lua table. This value can be an array of tables (for example, an array of objects in JSON format), and in that case the input record is effectively split into multiple records. |
120+
| `record` | table | If `code` equals `1` or `2`, the original record information will be replaced with this new value. The `record` value must be a valid Lua table. This value can be an array of tables (for example, an array of objects in JSON format), and in that case the input record is effectively split into multiple records. |
121121

122122
## Lua extended callback with groups and metadata support
123123

0 commit comments

Comments
 (0)