mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 02:18:39 +08:00
Update flow/Trace.cpp
This commit is contained in:
parent
3335b2686e
commit
85757eb47c
@ -397,7 +397,7 @@ public:
|
|||||||
bufferLength += fields.sizeBytes();
|
bufferLength += fields.sizeBytes();
|
||||||
|
|
||||||
if (g_network && g_network->isSimulated()) {
|
if (g_network && g_network->isSimulated()) {
|
||||||
// If we have queued up a large number of events in simulation, then throw an error. This makes it easier to
|
// Throw an error if we have queued up a large number of events in simulation. This makes it easier to
|
||||||
// diagnose cases where we get stuck in a loop logging trace events that eventually runs out of memory.
|
// diagnose cases where we get stuck in a loop logging trace events that eventually runs out of memory.
|
||||||
// Without this we would never see any trace events from that loop, and it would be more difficult to
|
// Without this we would never see any trace events from that loop, and it would be more difficult to
|
||||||
// identify where the process is actually stuck.
|
// identify where the process is actually stuck.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user