gitkk/server
zhenyi 8c95eb230d refactor(actor): implement replica sync and ref update notification system
- Add is_write parameter to remote clients for read/write routing distinction
- Introduce RepoEntry struct with role tracking (primary/replica) for repositories
- Replace HashSet with HashMap for repository storage with role metadata
- Add ROLE_PRIMARY and ROLE_REPLICA constants for node role identification
- Implement FindPrimary and FindReplica RPC methods for role-based routing
- Add RefUpdateEvent message type for propagating reference updates
- Create sync module with BundleApplicator for handling replica synchronization
- Implement notify_ref_update calls after branch/tag/commit operations
- Add broadcast_ref_update function to propagate events across cluster nodes
- Modify route_repository to prioritize primary for writes and replicas for reads
- Update actor message handling to support role-based repository discovery
- Implement sync_from_primary function using pack protocol for incremental updates
2026-06-08 01:54:08 +08:00
..
archive.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
blame.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
branch.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
cache.rs test(bare): add comprehensive tests for GitBare functionality 2026-06-04 15:33:33 +08:00
commit.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
diff.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
merge.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
mod.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
pack.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
repository_maint.rs feat(server): add tracing spans and caching to archive and blame services 2026-06-04 15:33:16 +08:00
repository.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
tag.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00
tree.rs refactor(actor): implement replica sync and ref update notification system 2026-06-08 01:54:08 +08:00