Skip to content

IdMap: move Tidents/user info to sharded caches

Abhishek Lekshmanan requested to merge tident-shards into master

Also does the following

  • moving from std::map to undordered map for hashtable (controllable by a template param)
  • for the who command we basically copy over the full map shard by shard, however since this is not in the server path it should be relatively easier than actually giving out the entire map of shared_ptr values. Also since we lock only a shard, it should be relatively less blocking wrt IdMap calls
  • AssistedThread: copy the string value, it is possible that the string setting the name might not live long enough
Edited by Abhishek Lekshmanan

Merge request reports