be consistent in adding sig in value and doc record
This commit is contained in:
parent
ef83385431
commit
b88c28b856
@ -1070,9 +1070,10 @@ bool Db::addOrUpdate(const string &udi, const string &parent_udi, Doc &doc)
|
||||
RECORD_APPEND(record, Doc::keyds, sizebuf);
|
||||
|
||||
// Note that we add the signature both as a value and in the data record
|
||||
if (!doc.sig.empty())
|
||||
if (!doc.sig.empty()) {
|
||||
RECORD_APPEND(record, Doc::keysig, doc.sig);
|
||||
newdocument.add_value(VALUE_SIG, doc.sig);
|
||||
newdocument.add_value(VALUE_SIG, doc.sig);
|
||||
}
|
||||
|
||||
if (!doc.ipath.empty())
|
||||
RECORD_APPEND(record, Doc::keyipt, doc.ipath);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user