summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v7-stable-newmsglock' into master-newmsglockRainer Gerhards2012-12-061-2/+41
|\ | | | | | | | | | | | | Conflicts: runtime/msg.c runtime/queue.c tools/syslogd.c
| * fix missing functionality: ruleset(){} could not specify ruleset queueRainer Gerhards2012-11-301-1/+40
| | | | | | | | | | | | | | | | | | | | The "queue.xxx" parameter set was not supported, and legacy ruleset config statements did not work (by intention). The fix introduces the "queue.xxx" parameter set. It has some regression potential, but only for the new functionality. Note that using that interface it is possible to specify duplicate queue file names, which will cause trouble. This will be solved in v7.3, because there is a too-large regression potential for the v7.2 stable branch.
| * silence compiler warningsRainer Gerhards2012-11-301-0/+3
| | | | | | | | | | the changes do not affect actual code execution, just keep the compile log clean.
| * silence compiler warnings & some cleanupRainer Gerhards2012-11-141-1/+1
| |
* | queue: file delete stream does no longer do real ioRainer Gerhards2012-11-191-62/+34
| | | | | | | | | | | | This stream is primarily used for state tracking, and has been modified to do just that. This results in considerable less io being done and the respective speedup.
* | queue: reduce CPU load for deserializing message propertiesRainer Gerhards2012-11-061-3/+3
| | | | | | | | | | Linear runtime due to message order. Was quadratic before. However, not a big overall improvement.
* | queue: mini-improvement in deserializer (stage work)Rainer Gerhards2012-11-051-2/+2
| |
* | queue: handle unknown queue type in debug outputRainer Gerhards2012-11-031-0/+3
| | | | | | | | note: can not happen, but...
* | queue: remove time() calls from msg deserializationRainer Gerhards2012-11-031-4/+16
| |
* | queue: use specific deserializer for msg objectRainer Gerhards2012-11-031-3/+2
| | | | | | | | spares lengthy table lookups
* | queue: remove unnecessary (obj_t*) redirection from msg ptrsRainer Gerhards2012-11-031-42/+40
| |
* | queue: change generic msg ptr (pUsr) to be of msg_t typeRainer Gerhards2012-11-031-30/+29
| |
* | queue: change gerenic queue pUsr ptr to be action_tRainer Gerhards2012-11-031-5/+5
| | | | | | | | | | | | this was always action_t, but the initial design was more generic. We are making it specific now in order to gain better performance (after all, we did not need the generic engine in the past 8 years...)
* | generate disk .qi file once at queue constructionRainer Gerhards2012-11-021-16/+11
| | | | | | | | | | ... instead of each time a file write happens. In some situations (very frequent sync), this can probably be a big performane win.
* | cosmetic: get rid of compiler warning on currently unused debug codeRainer Gerhards2012-10-191-1/+1
|/
* fix optimizer-introduced memleak in action destructionRainer Gerhards2012-09-251-61/+63
|
* bugfix: debug output indicated improper queue typeRainer Gerhards2012-09-191-0/+4
|
* new ruleengine: fixed action handling in regard to filtersRainer Gerhards2012-09-121-2/+2
| | | | This was not yet adapted to the new "active" structure.
* Merge branch 'beta'Rainer Gerhards2012-07-241-0/+49
|\ | | | | | | | | | | Conflicts: ChangeLog configure.ac
| * Merge branch 'v5-stable' into betaRainer Gerhards2012-07-241-3/+5
| |\
| * | debug log: cleaned up & streamlined queue param outputRainer Gerhards2012-07-051-20/+43
| | |
| * | debug log: emit (some) action queue parameters to debug logRainer Gerhards2012-07-051-0/+26
| | |
* | | Merge branch 'v5-stable'Rainer Gerhards2012-07-241-3/+5
|\ \ \ | | |/ | |/|
| * | bugfix: DA queue could cause abortRainer Gerhards2012-07-241-3/+5
| | | | | | | | | | | | | | | ...due to invalid mutex synchronisation in DA worker. In case of idle queue, mutex was incorrectly locked.
* | | Merge branch 'beta'Rainer Gerhards2012-06-011-10/+16
|\ \ \ | | |/ | |/|
| * | Merge branch 'v5-beta' into betaRainer Gerhards2012-06-011-10/+16
| |\ \
| | * | Merge branch 'v5-stable' into v5-betaRainer Gerhards2012-06-011-10/+16
| | |\| | | | | | | | | | | | | | | | | Conflicts: runtime/queue.c
| | | * some better code to handle queue congestionRainer Gerhards2012-06-011-10/+15
| | | | | | | | | | | | | | | | | | | | This is a minor optimization to spare some cycles if the timeout is set to immediate discard
| | * | bugfix: disk queue was not persisted on shutdown, regression of fix toRainer Gerhards2012-05-101-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://bugzilla.adiscon.com/show_bug.cgi?id=299 The new code also handles the case of shutdown of blocking light and full delayable sources somewhat smarter and permits, assuming sufficient timouts, to persist message up to the max queue capacity. Also some nits debug instrumentation have been fixed.
| | * | Merge branch 'v5-stable' into v5-betaRainer Gerhards2012-05-031-7/+47
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| | * \ \ Merge branch 'v5-stable-newstats' into v5-develRainer Gerhards2012-04-071-4/+8
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html
| | * \ \ \ Merge branch 'v5-stable-newstats' into v5-develRainer Gerhards2012-03-141-3/+2
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac
| | * \ \ \ \ Merge branch 'v5-stable-newstats' into v5-develRainer Gerhards2012-03-121-0/+9
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog action.c configure.ac doc/imuxsock.html doc/manual.html runtime/queue.c
* | | | | | | | added --enable-debugless configure option for very high demanding environmentsRainer Gerhards2012-05-291-6/+6
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This actually at compile time disables a lot of debug code, resulting in some speedup (but serious loss of debugging capabilities)
* | | | | | | Merge branch 'v6-stable'Rainer Gerhards2012-05-101-11/+5
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * | | | | | bugfix: disk queue was not persisted on shutdown, regression of fix toRainer Gerhards2012-05-101-11/+5
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://bugzilla.adiscon.com/show_bug.cgi?id=299 The new code also handles the case of shutdown of blocking light and full delayable sources somewhat smarter and permits, assuming sufficient timouts, to persist message up to the max queue capacity. Also some nits in debug instrumentation have been fixed.
* | | | | | Merge branch 'v6-stable'Rainer Gerhards2012-05-031-6/+47
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: tools/syslogd.c
| * | | | | bugfix: rsyslog did not terminate when delayable inputs were blockedRainer Gerhards2012-05-031-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...due to unvailable sources. Fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=299 Thanks to Marcin M for bringing up this problem and Andre Lorbach for helping to reproduce and fix it.
| * | | | | bugfix: inside queue.c, some thread cancel states were not correctly reset.Rainer Gerhards2012-05-031-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While this is a bug, we assume it did have no practical effect because the reset as it was done was set to the state the code actually had at this point. But better fix this...
| * | | | | bugfix: active input in "light delay state" could block rsyslog terminationRainer Gerhards2012-04-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | at least for prolonged period of time...
* | | | | | Merge branch 'v5-stable-newstats'Rainer Gerhards2012-04-071-0/+1
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: action.c configure.ac doc/imuxsock.html plugins/imklog/imklog.c plugins/imptcp/imptcp.c plugins/imtcp/imtcp.c plugins/imudp/imudp.c plugins/imuxsock/imuxsock.c runtime/glbl.c runtime/glbl.h runtime/net.c runtime/ruleset.c tcpsrv.h tools/syslogd.c
| * | | | | Merge branch 'v5-stable' into v5-stable-newstatsRainer Gerhards2012-04-071-4/+8
| |\| | | | | | |_|_|/ | |/| | | | | | | | | | | | | Conflicts: configure.ac
| * | | | Merge branch 'v5-stable' into v5-stable-newstatsRainer Gerhards2012-03-141-3/+2
| |\ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | Conflicts: plugins/imuxsock/imuxsock.c runtime/queue.c runtime/queue.h
| * | | | Merge branch 'v5-stable' into v5-stable-newstatsRainer Gerhards2012-03-121-1/+8
| |\ \ \ \
| * | | | | added configuration directives to customize queue light delay marksRainer Gerhards2012-02-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $MainMsgQueueLightDelayMark, $ActionQueueLightDelayMark; both specify number of messages starting at which a delay happens.
| * | | | | added instrumentationRainer Gerhards2011-12-191-1/+10
| | | | | |
* | | | | | Merge branch 'v6-stable'Rainer Gerhards2012-04-071-4/+8
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | bugfix: segfault on startup if $actionqueuefilename was missing for disk ↵Tomas Heinrich2012-04-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | queue config Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
| * | | | | bugfix: segfault if disk-queue was started up with old queue fileTomas Heinrich2012-04-051-3/+6
| | |_|/ / | |/| | | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | | added "date-unixtimestamp" property replacer option to format as a unix ↵Rainer Gerhards2012-03-291-1/+0
| | | | | | | | | | | | | | | | | | | | timestamp