Hacker News new | past | comments | ask | show | jobs | submit login

I am probably missing something here, but if a delete happens asynchronously wouldn't that make the key still be available? What happens if you check if that key still exists in a different operation as you're deleting it?

Also, how slow is an operation to rename it before you delete it?




The key is removed from the main hashtable and thus not accessible by the normal code path. It's appended to the internal list for deletion then. That's basically just moving around a pointer.

A manual rename is not needed.


Ah appreciated. It was a lot going over my head.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: