PragmaTwice commented on PR #1418:
URL:
https://github.com/apache/incubator-kvrocks/pull/1418#issuecomment-1535035392
@ellutionist Thanks for your explanation.
I have not dove into these changes deeply, but if you just want to make
lifetime of SyncMigrateContext as long as the command object, you can store a
instance of SyncMigrateContext in CommandClusterX directly (`class
CommandClusterX { SyncMigrateContext ctx_; ... }`), and pass some non-owning
pointer (like raw pointer, no ownership) to the migrator.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]