{"id":"lsm-memtable-swap-is-reference-not-copy","text":"`_flush` line 307 `frozen = self._memtable` captures a Python reference to the SortedDict, not a deep copy, so concurrent mutation of the dict after the swap would be unsafe without synchronization","truth_value":"IN","source":"entries/2026/05/29/topic-concurrent-flush-safety.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"explanation":{"steps":[{"node":"lsm-memtable-swap-is-reference-not-copy","truth_value":"IN","reason":"premise"}]}}