summaryrefslogtreecommitdiffstats
path: root/server/parser/xmlparser.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-10-21 10:31:56 +0200
committerDavid Sommerseth <davids@redhat.com>2009-10-21 10:31:56 +0200
commit143167cc63b7c809abcb048ec4454d8c5cebcb42 (patch)
treec7252293fbaaa4349f76f7ddf1ea8afd610b3312 /server/parser/xmlparser.h
parent6e90b1e99b02a9cac45686c63ddeeae044466aca (diff)
Implemented database LISTEN via db_wait_notification()
This introduces async waiting for report parsing. Commit 2584a3c36c97c757dc80108b898eede52b91dc44 introduced sending a NOTIFY whenever an INSERT is done into the submissionqueue table. With the db_wait_notification() the process_submission_queue() function will sleep until a a notification is received. The LISTEN, UNLISTEN and NOTIFY SQL commands are PostgreSQL dependent. Other database implementations may use what that database supports, or just simply do a sleep() to change the behaviour to a polling model.
Diffstat (limited to 'server/parser/xmlparser.h')
0 files changed, 0 insertions, 0 deletions