summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-12-11 13:00:52 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-12-11 13:00:52 +0100
commit42ff3e6bc13cbece7a2959935aa9200e6cbe1051 (patch)
tree1e6c90ab0763a4af476d11a7ce4f817fb608fe1d /plugins
parentc9125981998541b63eaa55c7cdedb46fe2ae2701 (diff)
downloadrsyslog-42ff3e6bc13cbece7a2959935aa9200e6cbe1051.tar.gz
rsyslog-42ff3e6bc13cbece7a2959935aa9200e6cbe1051.tar.xz
rsyslog-42ff3e6bc13cbece7a2959935aa9200e6cbe1051.zip
made ompgsql behave correctly with older rsyslog core versions
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ompgsql/ompgsql.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ompgsql/ompgsql.c b/plugins/ompgsql/ompgsql.c
index 5a6ad733..784a722d 100644
--- a/plugins/ompgsql/ompgsql.c
+++ b/plugins/ompgsql/ompgsql.c
@@ -246,7 +246,8 @@ BEGINdoAction
CODESTARTdoAction
dbgprintf("\n");
CHKiRet(writePgSQL(ppString[0], pData));
- iRet = RS_RET_DEFER_COMMIT;
+ if(bCoreSupportsBatching)
+ iRet = RS_RET_DEFER_COMMIT;
finalize_it:
ENDdoAction