mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-04 16:13:23 +00:00
The duplicate check for append_compression_point ran as a SELECT before the UPDATE, so two sessions persisting the same point could both pass it. The predicate now lives inside the UPDATE's CASE expression and is evaluated under the row lock; a point without query_index or compressed_summary never matches and is always appended. Adds a two-session regression test that races the same point and expects one.