Skip to content

refactor: remove shared storage code from ObServerStorageMetaService (#61)#141

Merged
LINxiansheng merged 2 commits into
oceanbase:developfrom
NTLx:feature/remove-shared-storage
Jan 31, 2026
Merged

refactor: remove shared storage code from ObServerStorageMetaService (#61)#141
LINxiansheng merged 2 commits into
oceanbase:developfrom
NTLx:feature/remove-shared-storage

Conversation

@NTLx

@NTLx NTLx commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Removed ObServerStorageMetaReplayer and related shared-storage logic from ObServerStorageMetaService.

Addresses #61 as part of the AI Coding cleanup initiative (Subtask: ObServerStorageMetaReplayer cleanup).

Changes

  • Removed Class: ObServerStorageMetaReplayer (.h/.cpp) which contained logic strictly for shared storage mode.
  • Refactored Service: ObServerStorageMetaService no longer maintains is_shared_storage_ state or replayer_ instance.
  • Logic Cleanup: Flattened init(), start(), and other lifecycle methods to remove if (is_shared_storage_) branches.
  • Build System: Updated src/storage/CMakeLists.txt to remove the deleted source file.

AI Contribution Details

This PR was developed with Claude Code assistance:

  • Scope Analysis: Identified that ObServerStorageMetaReplayer was only used in shared storage paths and had no dependencies in shared-nothing mode.
  • Implementation: Safely removed the class and refactored the consuming service to remove the dependency.
  • Validation: Performed static analysis to ensure no residual references to removed members (replayer_, is_shared_storage_).

Testing

  • Syntax check passed (no residual references found)
  • CI validation required (macOS environment limitation)

Checklist

  • Code follows project style guidelines
  • No breaking changes for default (shared-nothing) mode

🤖 Generated with Claude Code

NTLx and others added 2 commits January 28, 2026 18:23
…ceanbase#61)

- Remove ObServerStorageMetaReplayer class which is shared-storage specific
- Remove replayer_ and is_shared_storage_ from ObServerStorageMetaService
- Flatten init/start logic to default to shared-nothing mode
- Update CMakeLists.txt to exclude deleted files

Addresses oceanbase#61

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@LINxiansheng LINxiansheng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LINxiansheng LINxiansheng merged commit 39204f2 into oceanbase:develop Jan 31, 2026
2 checks passed
@WSL0809

WSL0809 commented Jan 31, 2026

Copy link
Copy Markdown
Contributor

This PR seems to fail the CI build

@NTLx

NTLx commented Jan 31, 2026

Copy link
Copy Markdown
Contributor Author

Hi @WSL0809, thanks for the review!

I checked the CI status for this PR, and all checks actually passed:

  • ✅ translator: SUCCESS
  • ✅ license/cla: SUCCESS

The PR has been successfully merged. If you're referring to a different CI failure, please let me know the details and I'll investigate further!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants