refactor: инкапсуляция глобального состояния pam_pmm в структуру pam_pmm_state (Этап 10.1, Issue #205)#222
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: netkeep80#205
…pmm_state (Этап 10.1, Issue netkeep80#205) Три разрозненные статические переменные (filename, root_offset, initialized) объединены в структуру pam_pmm_state с методом reset(). Глобальный синглтон pam_pmm_global_state() заменяет прямой доступ к переменным. Функции detail:: делегируют синглтону для обратной совместимости. Добавлены 4 теста (659 тестов, все проходят). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This reverts commit 4ddaa7b.
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
📎 Log file uploaded as Gist (1505KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
🔄 Auto-restart triggered (iteration 1)Reason: CI failures detected Starting new session to address the issues. Auto-restart-until-mergeable mode is active. Will continue until PR becomes mergeable. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
🔄 Auto-restart-until-mergeable Log (iteration 1)This log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
🤖 Models used:
📎 Log file uploaded as Gist (1943KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
filename,root_offset,initialized) вdetail::namespace инкапсулированы в структуруpam_pmm_stateс методомreset()pam_pmm_global_state()— единая точка доступа к состоянию PMM-фасадаdetail::pam_pmm_filename(),detail::pam_pmm_root_offset(),detail::pam_pmm_initialized()делегируют синглтону для обратной совместимостиpam_pmm_stateplan.mdиreadme.mdКонтекст
Это Этап 10.1 (Проблема 3, Этап A) из plan.md — первый шаг к поддержке нескольких экземпляров БД в одном процессе. Этапы B (передача состояния как параметра) и C (потокобезопасность) — будущие задачи.
Fixes
Fixes #205
Test plan
pam_pmm_state,reset(), консистентность сdetail::, циклinit/destroydeps/pmm/pmm.h)🤖 Generated with Claude Code