mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
65054f2044
Summary: Comments for why we don't need a lock when updating the SqlIdMap with multiple writers. Structure can definitely be improved but I'll live with this for a short time. No fundamental change in logic. I added extra checks to the insert function and changed from an optimistic insert race logic to a pessimistic version. I explain in the comments that it's to have an easier time reasoning about what happens and that theoretically doesn't matter. Reviewed By: quark-zju Differential Revision: D25606290 fbshipit-source-id: ea21915fc797fe759b3fe481e8ad9e8cb594fb6a |
||
---|---|---|
.. | ||
schemas | ||
src | ||
Cargo.toml |