Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makemandb Disable the database compression if DEBUG...



details:   https://anonhg.NetBSD.org/src/rev/b4768b9ccb1d
branches:  trunk
changeset: 353283:b4768b9ccb1d
user:      abhinav <abhinav%NetBSD.org@localhost>
date:      Thu Apr 27 08:02:24 2017 +0000

description:
Disable the database compression if DEBUG is defined.

When debugging makemandb(8), it helps to be able to view the text being
stored in the database.

diffstat:

 usr.sbin/makemandb/apropos-utils.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 156baf408a81 -r b4768b9ccb1d usr.sbin/makemandb/apropos-utils.c
--- a/usr.sbin/makemandb/apropos-utils.c        Thu Apr 27 06:53:44 2017 +0000
+++ b/usr.sbin/makemandb/apropos-utils.c        Thu Apr 27 08:02:24 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apropos-utils.c,v 1.31 2017/04/23 13:52:57 abhinav Exp $       */
+/*     $NetBSD: apropos-utils.c,v 1.32 2017/04/27 08:02:24 abhinav Exp $       */
 /*-
  * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
  * All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: apropos-utils.c,v 1.31 2017/04/23 13:52:57 abhinav Exp $");
+__RCSID("$NetBSD: apropos-utils.c,v 1.32 2017/04/27 08:02:24 abhinav Exp $");
 
 #include <sys/queue.h>
 #include <sys/stat.h>
@@ -176,8 +176,10 @@
            "CREATE VIRTUAL TABLE mandb USING fts4(section, name, "
                "name_desc, desc, lib, return_vals, env, files, "
                "exit_status, diagnostics, errors, md5_hash UNIQUE, machine, "
-               "compress=zip, uncompress=unzip, tokenize=porter, "
-               "notindexed=section, notindexed=md5_hash); "
+#ifndef DEBUG          
+               "compress=zip, uncompress=unzip, "
+#endif         
+               "tokenize=porter, notindexed=section, notindexed=md5_hash); "
            //mandb_meta
            "CREATE TABLE IF NOT EXISTS mandb_meta(device, inode, mtime, "
                "file UNIQUE, md5_hash UNIQUE, id  INTEGER PRIMARY KEY); "



Home | Main Index | Thread Index | Old Index