* 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.
*
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;
}
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);
}
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++;
}
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)))
* 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.
char *recordType;
int flagStoreData;
int flagStoreKeys;
+ int fileVerboseFlag;
};
* 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
rGroupDef.recordType = NULL;
rGroupDef.flagStoreData = -1;
rGroupDef.flagStoreKeys = -1;
+ rGroupDef.fileVerboseFlag = 1;
prog = *argv;
if (argc < 2)