Sometimes, tagless strand registers self only after its module (like
IpcIoFile) supplies a tag. We need to keep the tag for future tag searches
to succeed.
{
debugs(54, 3, HERE << "registering kid" << strand.kidId <<
' ' << strand.tag);
- if (StrandCoord* found = findStrand(strand.kidId))
+ if (StrandCoord* found = findStrand(strand.kidId)) {
+ const String oldTag = found->tag;
*found = strand;
- else
+ if (oldTag.size() && !strand.tag.size())
+ found->tag = oldTag; // keep more detailed info (XXX?)
+ } else {
strands_.push_back(strand);
+ }
// notify searchers waiting for this new strand, if any
typedef Searchers::iterator SRI;