summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-11-03 17:07:22 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-11-03 17:07:22 +0100
commit5a643669221363a49fb36cfb2acc64dc29b53a14 (patch)
treefefaea4fa17ed1b26a76a857397a3a3bc7adae27 /runtime/msg.c
parentc28d92259b27eebca3892b9ad18d467691e5aacc (diff)
downloadrsyslog-5a643669221363a49fb36cfb2acc64dc29b53a14.tar.gz
rsyslog-5a643669221363a49fb36cfb2acc64dc29b53a14.tar.bz2
rsyslog-5a643669221363a49fb36cfb2acc64dc29b53a14.zip
queue: remove time() calls from msg deserialization
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index b34adca3..dca49a6d 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -814,6 +814,19 @@ finalize_it:
}
+/* Special msg constructor, to be used when an object is deserialized.
+ * we do only the base init as we know the properties will be set in
+ * any case by the deserializer. We still do the "inexpensive" inits
+ * just to be on the safe side. The whole process needs to be
+ * refactored together with the msg serialization subsystem.
+ */
+rsRetVal
+msgConstructForDeserializer(msg_t **ppThis)
+{
+ return msgBaseConstruct(ppThis);
+}
+
+
/* some free handlers for (slightly) complicated cases... All of them may be called
* with an empty element.
*/