-
Notifications
You must be signed in to change notification settings - Fork 80
Refactor LogsDB: Remove pimpl idiom and extract helper classes into logsdb/ directory #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: mcrnic <11664456+mcrnic@users.noreply.github.com>
Co-authored-by: mcrnic <11664456+mcrnic@users.noreply.github.com>
|
@copilot this does not compile as lot of implementations are using constants from LogsDB class. Could you move those definitions to LogsDBCommon |
Co-authored-by: mcrnic <11664456+mcrnic@users.noreply.github.com>
Fixed in b7e520a. Moved all LogsDB constants to |
|
- Created logsdb/LogsDBTypes.hpp to contain LogsDBLogEntry, LogsDBRequest, and LogsDBResponse definitions - Helper classes using std::array<LogsDBLogEntry> now include full definition via LogsDBTypes.hpp - Added RocksDBUtils.hpp include to LogsDBCommon.hpp for ROCKS_DB_CHECKED macro - Updated Appender.hpp, LeaderElection.hpp, and BatchWriter.hpp to include LogsDBTypes.hpp - Removed duplicate type definitions from LogsDB.hpp Co-authored-by: mcrnic <11664456+mcrnic@users.noreply.github.com>
Fixed in cd24103:
|
Refactor LogsDB: Remove pimpl idiom and extract helper classes into logsdb/ directory
Summary:
Successfully refactored LogsDB to remove the pimpl idiom and extract all helper classes into separate files in the
cpp/core/logsdb/directory. This makes the codebase more modular and allows components likeCatchupReaderto be used independently.Recent Fixes:
LogsDBConstsnamespaceChanges Made:
cpp/core/logsdb/directory structureLogsDBData.hpptologsdb/directoryLogsDBclassFile Structure:
All compilation issues resolved. Helper classes now have access to:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.