16 Commits

Author SHA1 Message Date
PascalWithopf
19133327cc correct codestyle in rsyslog 2018-07-31 09:44:27 +02:00
Janmejay Singh
c205dcba26 Fix lookup-table unsigned underflow in array-table lookup and empty-table handling across array and sparse-array tables (first one was identified in #2295 after first set of identified issues were fixed) + single-line cosmetic changes that kill trailing spaces/tabs 2017-12-27 19:01:23 +05:30
Rainer Gerhards
8a8675b223 fix compiler warnings 2016-06-02 10:18:05 +02:00
Janmejay Singh
1ac753761a added reloadOnHUP(defaults to on) parameter in lookup-table object (again, somehow overlooked this during proposal impl) 2016-02-11 23:23:22 +05:30
Janmejay Singh
bf43179381 moved to async(dispatched on a different thread) lookup-table reload (stub param is still mandatory, making it optional requires more work) 2015-12-21 23:42:11 +05:30
Janmejay Singh
0f9bffc2f1 rscript based control for reload and stubbing of lookup-table 2015-12-18 20:04:16 +05:30
Janmejay Singh
8649ea6f53 sparse-array implementation for lookup table, this completes the happy-path flow of lookup-table impl 2015-11-02 19:21:11 +05:30
Janmejay Singh
71740b1683 array lookup-table implemented + some compiler-warnings fixed 2015-11-02 17:32:04 +05:30
Janmejay Singh
991b2af65d part of lookup-table proposal implemented (part 1):
- design-change to make room for array and sparse-array tables in addition to string(which original design assumed)
- memory-leak fix (in unused lookup-table senario), same problem could lead to illegal free(during shutdown) in multiple call-sites for lookup-fn
- allow rainerscript functions to declaratively opt-out of funcdata destruct
- tests for unused lookup-table senario and valgrind test for lookup-table
- interned-value-strings (so each value string is represented in memory only once, as per the proposal)
- memory-leak fix in failure senarios (allocation failure etc in table-loadup)
2015-10-30 16:31:30 +05:30
Rainer Gerhards
32467b3bcd reload lookup tables on HUP 2013-07-16 15:07:24 +02:00
Rainer Gerhards
6caa8cb043 add base plumbing for (later) dynamic table reload
among others, we change some internal interfaces. So far, we only
add the necessary locks. More work in later commits.
2013-07-16 11:51:09 +02:00
Rainer Gerhards
f8f87de0a5 milestone: basic lookup() functionality is present
done the naive way, string indzes only
2013-07-10 16:06:57 +02:00
Rainer Gerhards
40d2054104 milestone: completed string lookup table load (naive version) 2013-07-10 09:09:37 +02:00
Rainer Gerhards
1e69188573 milestone: lookup table ready for actual load (but load not yet done) 2013-07-09 11:44:40 +02:00
Rainer Gerhards
9cf45a63f5 milestone: add lookup_table stmt to RainerScript
... but still does nothing execpt calling the handler.
2013-07-09 09:30:58 +02:00
Rainer Gerhards
904c01bb8c add lookup table sekeleton to build system 2013-07-05 15:18:05 +02:00