From: Kern Sibbald Date: Wed, 19 Aug 2009 10:54:23 +0000 (+0200) Subject: Ensure that timestamp put in SQL log X-Git-Tag: Release-7.0.0~2649^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d3d1e51b2785868abb05b63b80e228105637abb;p=bacula%2Fbacula Ensure that timestamp put in SQL log --- diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index b8bbff30e1..7acf7447a3 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -624,6 +624,7 @@ void dispatch_message(JCR *jcr, int type, utime_t mtime, char *msg) if (mtime == 1) { *dt = 0; dtlen = 0; + mtime = time(NULL); /* get time for SQL log */ } else { bstrftime_ny(dt, sizeof(dt), mtime); dtlen = strlen(dt);