sapling/eden/fs/store/hg
Zeyi (Rice) Fan 59c2cb7aff eden: make HgImporter safer
Summary:
We want to have a shared pool of `HgImporter` across different threads, but that would require `HgImporter` is safe to be *passed* between threads. (This is not making `HgImporter` entirely thread safe.)

However, `HgImporter` currently holds a pointer to the thread local fb303 counter. This diff pushes down `EdenStats` so we only access the thread local stats variable when we need to add counters. This might be a little slower but it does make it safer.

Reviewed By: chadaustin

Differential Revision: D19053250

fbshipit-source-id: 44a897acc90c6042ae22a0417eece39e099ee13f
2020-01-16 12:45:37 -08:00
..
test eden: make HgImporter safer 2020-01-16 12:45:37 -08:00
CMakeLists.txt cmake: unconditionally build the Rust datapack library code 2019-11-22 13:00:06 -08:00
HgBackingStore.cpp eden: make HgImporter safer 2020-01-16 12:45:37 -08:00
HgBackingStore.h eden: decouple LocalStore from HgImporter 2020-01-16 12:45:36 -08:00
HgDatapackStore.cpp fix some warnings about functions returning without a value 2019-11-22 15:38:34 -08:00
HgDatapackStore.h eden: add experimental:use-edenapi for optionally turn on EdenApi importing 2019-12-10 13:40:55 -08:00
HgImporter.cpp eden: make HgImporter safer 2020-01-16 12:45:37 -08:00
HgImporter.h eden: make HgImporter safer 2020-01-16 12:45:37 -08:00
HgImportPyError.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
HgImportPyError.h eden: remove hg_import_helper.py 2019-12-03 09:30:09 -08:00
HgProxyHash.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
HgProxyHash.h Tidy up license headers 2019-10-11 05:28:23 -07:00
proxy_import_helper.py Tidy up license headers 2019-10-11 05:28:23 -07:00