*** empty log message ***
This commit is contained in:
parent
d27f4c0f8a
commit
cda686d77a
|
@ -1,5 +1,6 @@
|
||||||
2009-02-24 P. A. Bagyenda <bagyenda@dsmagic.com>
|
2009-02-24 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||||
* Pass MM7/SOAP LinkedID to service url in mmsbox
|
* 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>
|
2009-02-16 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||||
* Improved pgsql queue module performance
|
* Improved pgsql queue module performance
|
||||||
* MM1 queue changes - expire message even if fetched at least once
|
* MM1 queue changes - expire message even if fetched at least once
|
||||||
|
|
|
@ -264,7 +264,8 @@ static int pgq_free_envelope(MmsEnvelope *e, int removefromqueue)
|
||||||
if (mk_data_file(qfs->qid, "archive", qfs->dir, afile) < 0)
|
if (mk_data_file(qfs->qid, "archive", qfs->dir, afile) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
else if ((f = fopen(afile, "w")) != NULL) {
|
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)
|
if (x)
|
||||||
octstr_print(f, x);
|
octstr_print(f, x);
|
||||||
|
@ -1019,8 +1020,8 @@ static MmsMsg *pgq_queue_getdata(MmsEnvelope *e)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ms == NULL) {
|
if (ms == NULL) {
|
||||||
mms_error(0, "pgsql_queue", NULL, "mms_queue_getdata: Failed to read data for queue entry %s in %s",
|
mms_error(0, "pgsql_queue", NULL, "mms_queue_getdata: Failed to read data for queue entry %s in %s: %s",
|
||||||
e->xqfname, qfs->dir);
|
e->xqfname, qfs->dir, strerror(errno));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue