Improved query history file handling to update after each query without race conditions when accessed by multiple clients simultaneously.
Why it matters
This feature addresses the issue where multiple clients using a single history file could cause race conditions, leading to inconsistent or corrupted query history. By updating the history file after each query safely, it ensures reliable and accurate query logging across concurrent client sessions.How to use it
The update is automatic and requires no user intervention. When using ClickHouse clients that share the same history file, the file will now be updated safely after every query execution to prevent conflicts.