adjust log message levels and fix a warning

This commit is contained in:
Jean-Francois Dockes 2019-02-04 11:42:35 +01:00
parent 399c633efd
commit b079f0fb94
2 changed files with 5 additions and 4 deletions

View File

@ -412,7 +412,7 @@ int Query::Native::abstractFromText(
inslen += endhit.size();
}
#endif
LOGDEB("=== FRAGMENT: Coef: " << entry.coef << ": " << frag << endl);
LOGDEB0("=== FRAGMENT: Coef: " << entry.coef << ": " << frag << endl);
int page = 0;
if (vpbreaks.size() > 1) {
page = ndb->getPageNumberForPosition(vpbreaks, entry.hitpos);

View File

@ -21,6 +21,7 @@
#include "autoconfig.h"
#include <mutex>
#include <functional>
#include <xapian.h>
@ -51,9 +52,9 @@ public:
// available on the caller site.
// Take some care to avoid sharing string data (if string impl is cow)
DbUpdTask(Op _op, const string& ud, const string& un,
Xapian::Document *d, size_t tl, string& rztxt
) : op(_op), udi(ud.begin(), ud.end()), uniterm(un.begin(), un.end()),
doc(d), txtlen(tl) {
Xapian::Document *d, size_t tl, string& rztxt)
: op(_op), udi(ud.begin(), ud.end()), uniterm(un.begin(), un.end()),
doc(d), txtlen(tl) {
rawztext.swap(rztxt);
}
// Udi and uniterm equivalently designate the doc