Switch to unified view

a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.143 2008-09-08 16:49:10 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: rcldb.cpp,v 1.144 2008-09-09 12:58:23 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
867
    map<string,string>::iterator meta_it;
867
    map<string,string>::iterator meta_it;
868
    string pfx;
868
    string pfx;
869
    for (meta_it = doc.meta.begin(); meta_it != doc.meta.end(); meta_it++) {
869
    for (meta_it = doc.meta.begin(); meta_it != doc.meta.end(); meta_it++) {
870
    if (!meta_it->second.empty()) {
870
    if (!meta_it->second.empty()) {
871
        if (!fieldToPrefix(meta_it->first, pfx)) {
871
        if (!fieldToPrefix(meta_it->first, pfx)) {
872
        LOGDEB(("Db::add: no prefix for field [%s], no indexing\n",
872
        LOGDEB0(("Db::add: no prefix for field [%s], no indexing\n",
873
             meta_it->first.c_str()));
873
             meta_it->first.c_str()));
874
        continue;
874
        continue;
875
        }
875
        }
876
        LOGDEB1(("Db::add: field [%s] pfx [%s]: [%s]\n", 
876
        LOGDEB0(("Db::add: field [%s] pfx [%s]: [%s]\n", 
877
            meta_it->first.c_str(), pfx.c_str(), 
877
            meta_it->first.c_str(), pfx.c_str(), 
878
            meta_it->second.c_str()));
878
            meta_it->second.c_str()));
879
        if (!dumb_string(meta_it->second, noacc)) {
879
        if (!dumb_string(meta_it->second, noacc)) {
880
        LOGERR(("Db::add: dumb_string failed\n"));
880
        LOGERR(("Db::add: dumb_string failed\n"));
881
        return false;
881
        return false;
...
...
1023
        record += "\n" + *it + "=" + value;
1023
        record += "\n" + *it + "=" + value;
1024
        }
1024
        }
1025
    }
1025
    }
1026
    }
1026
    }
1027
    record += "\n";
1027
    record += "\n";
1028
    LOGDEB(("Rcl::Db::add: new doc record:\n %s\n", record.c_str()));
1028
    LOGDEB0(("Rcl::Db::add: new doc record:\n %s\n", record.c_str()));
1029
    newdocument.set_data(record);
1029
    newdocument.set_data(record);
1030
1030
1031
    const char *fnc = udi.c_str();
1031
    const char *fnc = udi.c_str();
1032
    string ermsg;
1032
    string ermsg;
1033
1033