|
a/src/rcldb/rcldoc.h |
|
b/src/rcldb/rcldoc.h |
|
... |
|
... |
161 |
haspages = false;
|
161 |
haspages = false;
|
162 |
haschildren = false;
|
162 |
haschildren = false;
|
163 |
onlyxattr = false;
|
163 |
onlyxattr = false;
|
164 |
}
|
164 |
}
|
165 |
// Copy ensuring no shared string data, for threading issues.
|
165 |
// Copy ensuring no shared string data, for threading issues.
|
166 |
void copyto(Doc *d) const {
|
166 |
void copyto(Doc *d) const;
|
167 |
d->url.assign(url.begin(), url.end());
|
167 |
|
168 |
d->idxurl.assign(idxurl.begin(), idxurl.end());
|
|
|
169 |
d->idxi = idxi;
|
|
|
170 |
d->ipath.assign(ipath.begin(), ipath.end());
|
|
|
171 |
d->mimetype.assign(mimetype.begin(), mimetype.end());
|
|
|
172 |
d->fmtime.assign(fmtime.begin(), fmtime.end());
|
|
|
173 |
d->dmtime.assign(dmtime.begin(), dmtime.end());
|
|
|
174 |
d->origcharset.assign(origcharset.begin(), origcharset.end());
|
|
|
175 |
map_ss_cp_noshr(meta, &d->meta);
|
|
|
176 |
d->syntabs = syntabs;
|
|
|
177 |
d->pcbytes.assign(pcbytes.begin(), pcbytes.end());
|
|
|
178 |
d->fbytes.assign(fbytes.begin(), fbytes.end());
|
|
|
179 |
d->dbytes.assign(dbytes.begin(), dbytes.end());
|
|
|
180 |
d->sig.assign(sig.begin(), sig.end());
|
|
|
181 |
d->text.assign(text.begin(), text.end());
|
|
|
182 |
d->pc = pc;
|
|
|
183 |
d->xdocid = xdocid;
|
|
|
184 |
d->idxi = idxi;
|
|
|
185 |
d->haspages = haspages;
|
|
|
186 |
d->haschildren = haschildren;
|
|
|
187 |
d->onlyxattr = onlyxattr;
|
|
|
188 |
}
|
|
|
189 |
Doc()
|
168 |
Doc()
|
190 |
: idxi(0), syntabs(false), pc(0), xdocid(0),
|
169 |
: idxi(0), syntabs(false), pc(0), xdocid(0),
|
191 |
haspages(false), haschildren(false), onlyxattr(false)
|
170 |
haspages(false), haschildren(false), onlyxattr(false) {
|
192 |
{
|
|
|
193 |
}
|
171 |
}
|
194 |
/** Get value for named field. If value pointer is 0, just test existence */
|
172 |
/** Get value for named field. If value pointer is 0, just test existence */
|
195 |
bool getmeta(const string& nm, string *value = 0) const
|
173 |
bool getmeta(const string& nm, string *value = 0) const
|
196 |
{
|
174 |
{
|
197 |
map<string,string>::const_iterator it = meta.find(nm);
|
175 |
map<string,string>::const_iterator it = meta.find(nm);
|