Loging added for file import

This commit is contained in:
Michiel Broek 2004-05-08 14:58:50 +00:00
parent df2eba102a
commit 4e6a5d5e33

View File

@ -105,11 +105,12 @@ int Add_BBS()
} }
#ifdef USE_EXPERIMENT #ifdef USE_EXPERIMENT
if (mbsedb_LockFDB(fdb_area, 30)) { if (mbsedb_LockFDB(fdb_area, 30)) {
fseek(fdb_area->fp, 0 - sizeof(frec), SEEK_CUR); fseek(fdb_area->fp, 0 - fdbhdr.recsize, SEEK_CUR);
fwrite(&frec, sizeof(frec), 1, fdb_area->fp); fwrite(&frec, fdbhdr.recsize, 1, fdb_area->fp);
mbsedb_UnlockFDB(fdb_area); mbsedb_UnlockFDB(fdb_area);
} }
mbsedb_CloseFDB(fdb_area); mbsedb_CloseFDB(fdb_area);
Syslog('f', "updated file entry");
#else #else
fseek(fp, 0 - sizeof(frec), SEEK_CUR); fseek(fp, 0 - sizeof(frec), SEEK_CUR);
fwrite(&frec, sizeof(frec), 1, fp); fwrite(&frec, sizeof(frec), 1, fp);