Switch to unified view

a/src/query/docseq.cpp b/src/query/docseq.cpp
...
...
18
#include "filtseq.h"
18
#include "filtseq.h"
19
#include "sortseq.h"
19
#include "sortseq.h"
20
#include "debuglog.h"
20
#include "debuglog.h"
21
#include "internfile.h"
21
#include "internfile.h"
22
22
23
PTMutexInit DocSequence::o_dblock;
23
string DocSequence::o_sort_trans;
24
string DocSequence::o_sort_trans;
24
string DocSequence::o_filt_trans;
25
string DocSequence::o_filt_trans;
25
26
26
int DocSequence::getSeqSlice(int offs, int cnt, vector<ResListEntry>& result)
27
int DocSequence::getSeqSlice(int offs, int cnt, vector<ResListEntry>& result)
27
{
28
{
...
...
41
    Rcl::Db *db = getDb();
42
    Rcl::Db *db = getDb();
42
    if (db == 0) {
43
    if (db == 0) {
43
    LOGERR(("DocSequence::getEnclosing: no db\n"));
44
    LOGERR(("DocSequence::getEnclosing: no db\n"));
44
    return false;
45
    return false;
45
    }
46
    }
47
    PTMutexLocker locker(o_dblock);
46
    string udi;
48
    string udi;
47
    if (!FileInterner::getEnclosingUDI(doc, udi))
49
    if (!FileInterner::getEnclosingUDI(doc, udi))
48
        return false;
50
        return false;
49
51
50
    bool dbret =  db->getDoc(udi, doc, pdoc);
52
    bool dbret =  db->getDoc(udi, doc, pdoc);