1
0
Fork 0

*** empty log message ***

This commit is contained in:
bagyenda 2009-02-26 04:10:27 +00:00
parent d27f4c0f8a
commit cda686d77a
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,6 @@
2009-02-24 P. A. Bagyenda <bagyenda@dsmagic.com>
* Pass MM7/SOAP LinkedID to service url in mmsbox
* Minor improvements in pgsql-queue error reporting
2009-02-16 P. A. Bagyenda <bagyenda@dsmagic.com>
* Improved pgsql queue module performance
* MM1 queue changes - expire message even if fetched at least once

View File

@ -264,7 +264,8 @@ static int pgq_free_envelope(MmsEnvelope *e, int removefromqueue)
if (mk_data_file(qfs->qid, "archive", qfs->dir, afile) < 0)
goto done;
else if ((f = fopen(afile, "w")) != NULL) {
Octstr *x = octstr_read_file(qfs->data_file);
struct stat st;
Octstr *x = (stat(qfs->data_file, &st) == 0) ? octstr_read_file(qfs->data_file) : NULL;
if (x)
octstr_print(f, x);
@ -1019,8 +1020,8 @@ static MmsMsg *pgq_queue_getdata(MmsEnvelope *e)
}
if (ms == NULL) {
mms_error(0, "pgsql_queue", NULL, "mms_queue_getdata: Failed to read data for queue entry %s in %s",
e->xqfname, qfs->dir);
mms_error(0, "pgsql_queue", NULL, "mms_queue_getdata: Failed to read data for queue entry %s in %s: %s",
e->xqfname, qfs->dir, strerror(errno));
return NULL;
}