mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
8b82dc96cb
Summary: As of right now, opendir is the expensive callbacks due to fetching the sizes for all the files in a directory. This strategy however breaks down when timeouts are added as very large directories would trigger the timeout, not because EdenFS is having a hard time reaching Mononoke, but because of bandwidth limitation. To avoid this issue, we need to have a per-file timeout and thus makes opendir just trigger the futures, but not wait on them. The waiting bit will happen at readdir time which will also enable having a timeout per file. The one drawback to this is that the ObjectFetchContext that is passed in by opendir cannot live long enough to be used in the size future. For now, we can use a null context, but a proper context will need to be passed in, in the future. Reviewed By: wez Differential Revision: D24895089 fbshipit-source-id: e10ceae2f7c49b4a006b15a34f85d06a2863ae3a |
||
---|---|---|
.. | ||
test | ||
CMakeLists.txt | ||
EdenStats.cpp | ||
EdenStats.h | ||
LogEvent.cpp | ||
LogEvent.h | ||
NullStructuredLogger.h | ||
RequestMetricsScope.cpp | ||
RequestMetricsScope.h | ||
ScribeLogger.h | ||
ScubaStructuredLogger.cpp | ||
ScubaStructuredLogger.h | ||
SessionInfo.cpp | ||
SessionInfo.h | ||
StructuredLogger.cpp | ||
StructuredLogger.h | ||
StructuredLoggerFactory.cpp | ||
StructuredLoggerFactory.h | ||
SubprocessScribeLogger.cpp | ||
SubprocessScribeLogger.h | ||
TraceBus-inl.h | ||
TraceBus.h | ||
Tracing.cpp | ||
Tracing.h |