summaryrefslogtreecommitdiffstats
path: root/plugins/ompgsql/ompgsql.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-12-11 12:17:02 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-12-11 12:17:02 +0100
commitc9125981998541b63eaa55c7cdedb46fe2ae2701 (patch)
treeb056e0399c8a8e6cf56effe99bce7aebbb4c64eb /plugins/ompgsql/ompgsql.c
parentabdc2870f1ebbf21a1b865804c512b1ffbeebb3a (diff)
downloadrsyslog-c9125981998541b63eaa55c7cdedb46fe2ae2701.tar.gz
rsyslog-c9125981998541b63eaa55c7cdedb46fe2ae2701.tar.xz
rsyslog-c9125981998541b63eaa55c7cdedb46fe2ae2701.zip
bugfix: ompgsql had problems with transaction support, what actually rendered it unsuable.
Thanks to forum user "horhe" for alerting me on this bug and helping to debug/fix it!
Diffstat (limited to 'plugins/ompgsql/ompgsql.c')
-rw-r--r--plugins/ompgsql/ompgsql.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ompgsql/ompgsql.c b/plugins/ompgsql/ompgsql.c
index cb6b6a4d..5a6ad733 100644
--- a/plugins/ompgsql/ompgsql.c
+++ b/plugins/ompgsql/ompgsql.c
@@ -245,7 +245,9 @@ ENDbeginTransaction
BEGINdoAction
CODESTARTdoAction
dbgprintf("\n");
- iRet = writePgSQL(ppString[0], pData);
+ CHKiRet(writePgSQL(ppString[0], pData));
+ iRet = RS_RET_DEFER_COMMIT;
+finalize_it:
ENDdoAction