From: Adam Dickmeiss Date: Mon, 12 Feb 1996 18:45:36 +0000 (+0000) Subject: New fileVerboseFlag in record group control. X-Git-Tag: ZEBRA.1.0~533 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=0d2825772055a5aeb7086d5a7d2d600cf498445e New fileVerboseFlag in record group control. --- diff --git a/index/extract.c b/index/extract.c index 798354a..009ad6a 100644 --- a/index/extract.c +++ b/index/extract.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: extract.c,v $ - * Revision 1.49 1996-02-05 12:29:57 adam + * Revision 1.50 1996-02-12 18:45:36 adam + * New fileVerboseFlag in record group control. + * + * Revision 1.49 1996/02/05 12:29:57 adam * Logging reduced a bit. * The remaining running time is estimated during register merge. * @@ -864,10 +867,8 @@ static int recordExtract (SYSNO *sysno, const char *fname, return 1; } logInfo.op = "add"; -#if 0 - logf (LOG_LOG, "update %s %s", rGroup->recordType, - fname); -#endif + if (rGroup->fileVerboseFlag) + logf (LOG_LOG, "add %s %s", rGroup->recordType, fname); rec = rec_new (records); *sysno = rec->sysno; @@ -897,9 +898,8 @@ static int recordExtract (SYSNO *sysno, const char *fname, } else { -#if 0 - logf (LOG_LOG, "delete %s %s", rGroup->recordType, fname); -#endif + if (rGroup->fileVerboseFlag) + logf (LOG_LOG, "delete %s %s", rGroup->recordType, fname); records_deleted++; if (matchStr) dict_delete (matchDict, matchStr); @@ -916,10 +916,8 @@ static int recordExtract (SYSNO *sysno, const char *fname, } else { -#if 0 - logf (LOG_LOG, "update %s %s", rGroup->recordType, - fname); -#endif + if (rGroup->fileVerboseFlag) + logf (LOG_LOG, "update %s %s", rGroup->recordType, fname); flushRecordKeys (*sysno, 1, &reckeys, rGroup->databaseName); records_updated++; } @@ -1037,18 +1035,16 @@ int fileExtract (SYSNO *sysno, const char *fname, sprintf (ext_res, "%srecordType", gprefix); if (!(rGroup->recordType = res_get (common_resource, ext_res))) { -#if 0 - logf (LOG_LOG, "? %s", fname); -#endif + if (rGroup->fileVerboseFlag) + logf (LOG_LOG, "? %s", fname); return 0; } } } if (!rGroup->recordType) { -#if 0 - logf (LOG_LOG, "? record %s", fname); -#endif + if (rGroup->fileVerboseFlag) + logf (LOG_LOG, "? record %s", fname); return 0; } if (!(recType = recType_byName (rGroup->recordType, subType))) diff --git a/index/index.h b/index/index.h index 0c0435c..2f2b7b7 100644 --- a/index/index.h +++ b/index/index.h @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: index.h,v $ - * Revision 1.34 1995-12-11 11:43:29 adam + * Revision 1.35 1996-02-12 18:45:36 adam + * New fileVerboseFlag in record group control. + * + * Revision 1.34 1995/12/11 11:43:29 adam * Locking based on fcntl instead of flock. * Setting commitEnable removed. Command line option -n can be used to * prevent commit if commit setting is defined in the configuration file. @@ -161,6 +164,7 @@ struct recordGroup { char *recordType; int flagStoreData; int flagStoreKeys; + int fileVerboseFlag; }; diff --git a/index/main.c b/index/main.c index e4aa024..b7e71b1 100644 --- a/index/main.c +++ b/index/main.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: main.c,v $ - * Revision 1.35 1996-02-12 15:56:11 adam + * Revision 1.36 1996-02-12 18:45:37 adam + * New fileVerboseFlag in record group control. + * + * Revision 1.35 1996/02/12 15:56:11 adam * New code command: unread. * * Revision 1.34 1996/02/07 14:06:39 adam @@ -167,6 +170,7 @@ int main (int argc, char **argv) rGroupDef.recordType = NULL; rGroupDef.flagStoreData = -1; rGroupDef.flagStoreKeys = -1; + rGroupDef.fileVerboseFlag = 1; prog = *argv; if (argc < 2)