|
a/src/query/docseqhist.cpp |
|
b/src/query/docseqhist.cpp |
|
... |
|
... |
77 |
|
77 |
|
78 |
if (!fn.empty()) {
|
78 |
if (!fn.empty()) {
|
79 |
// Old style entry found, make an udi, using the fs udi maker
|
79 |
// Old style entry found, make an udi, using the fs udi maker
|
80 |
make_udi(fn, ipath, udi);
|
80 |
make_udi(fn, ipath, udi);
|
81 |
}
|
81 |
}
|
82 |
LOGDEB(("RclDHistoryEntry::decode: udi [%s]\n", udi.c_str()));
|
82 |
LOGDEB1(("RclDHistoryEntry::decode: udi [%s]\n", udi.c_str()));
|
83 |
return true;
|
83 |
return true;
|
84 |
}
|
84 |
}
|
85 |
|
85 |
|
86 |
bool RclDHistoryEntry::equal(const DynConfEntry& other)
|
86 |
bool RclDHistoryEntry::equal(const DynConfEntry& other)
|
87 |
{
|
87 |
{
|
|
... |
|
... |
89 |
return e.udi == udi;
|
89 |
return e.udi == udi;
|
90 |
}
|
90 |
}
|
91 |
|
91 |
|
92 |
bool historyEnterDoc(RclDynConf *dncf, const string& udi)
|
92 |
bool historyEnterDoc(RclDynConf *dncf, const string& udi)
|
93 |
{
|
93 |
{
|
94 |
LOGDEB(("historyEnterDoc: [%s] into %s\n",
|
94 |
LOGDEB1(("historyEnterDoc: [%s] into %s\n",
|
95 |
udi.c_str(), dncf->getFilename().c_str()));
|
95 |
udi.c_str(), dncf->getFilename().c_str()));
|
96 |
RclDHistoryEntry ne(time(0), udi);
|
96 |
RclDHistoryEntry ne(time(0), udi);
|
97 |
RclDHistoryEntry scratch;
|
97 |
RclDHistoryEntry scratch;
|
98 |
return dncf->insertNew(docHistSubKey, ne, scratch, 200);
|
98 |
return dncf->insertNew(docHistSubKey, ne, scratch, 200);
|
99 |
}
|
99 |
}
|