veyron/services/mounttable: Fixing a bug where a child mounttable
(using the -name flag) registering under a root mounttable would re-mount
to itself rather than the actual root after TTL expired
the first time.
The problem:
mounttable daemon was setting itself as the NamespaceRoot after serving
this meant when publisher mounts correctly to NAMESCPACE_ROOT the first time but when TTL expires and publisher and tries to mount again, it would
instead mount itself to itself instead of NAMESCPACE_ROOT.
The fix:
mounttable daemon was setting itself as the NamespaceRoot for the purpose
mounting the neighborhood server on itself rather than the NAMESCPACE_ROOT.
The fix accomplishes that by serving the "nh" suffix at the rooted
/thisMTAddress//nh therefore eliminating the need to change the namespace
root.
Change-Id: I38ed9246664d4603b2acdf8696c63a409c8a5910
1 file changed