From: Friedrich L. <fr...@us...> - 2004-05-09 23:13:49
|
Update of /cvsroot/ipac-ng/ipac-ng/storage/postgre In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32135/storage/postgre Modified Files: postgre.c Log Message: fix problem with unspooling data from spool file make remark about hostname "problem" in storage/postgre/postgre.c more clear Index: postgre.c =================================================================== RCS file: /cvsroot/ipac-ng/ipac-ng/storage/postgre/postgre.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- postgre.c 2 Feb 2004 22:19:35 -0000 1.29 +++ postgre.c 9 May 2004 23:13:40 -0000 1.30 @@ -398,10 +398,12 @@ exit (-1); } (*data)[index].timestamp = timestamp_akt; - /* FIXME: storing only the first machine name found is crap - so there's no need to store the machine name anyway + /* FIXME: Two records with the same 'that_time' field but different + hostname fields get listed as being from the hostname of + the first record. Therefore it makes no sense and is plain + wrong to store the hostname in this query. */ - tmp = (char *)PQgetvalue (res, i, 4); + /* tmp = (char *)PQgetvalue (res, i, 4); (*data)[index].machine_name = calloc(1, strlen(tmp)+1); if ((*data)[index].machine_name == NULL) { |