1 diff --git a/src/jrd/trace/TraceConfigStorage.cpp b/src/jrd/trace/TraceConfigStorage.cpp
2 index 05fce3211ae7..d267713e85de 100644
3 --- a/src/jrd/trace/TraceConfigStorage.cpp
4 +++ b/src/jrd/trace/TraceConfigStorage.cpp
5 @@ -103,11 +103,11 @@ ConfigStorage::ConfigStorage()
6 pfnProcessIdToSessionId(GetCurrentProcessId(), &sesID) == 0 ||
9 - filename.printf(TRACE_FILE); // TODO: it must be per engine instance
10 + filename.printf("%s.0.%u", TRACE_FILE, GetCurrentProcessId()); // TODO: it must be per engine instance
14 - filename.printf("%s.%u", TRACE_FILE, sesID);
15 + filename.printf("%s.%u.%u", TRACE_FILE, sesID, GetCurrentProcessId());
18 filename.printf(TRACE_FILE); // TODO: it must be per engine instance