sashapolo commented on code in PR #831:
URL: https://github.com/apache/ignite-3/pull/831#discussion_r886622609
##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/PageMemoryStorageEngine.java:
##########
@@ -64,26 +70,18 @@ public PageMemoryStorageEngine(
public void start() {
int pageSize = engineConfig.pageSize().value();
- VolatilePageMemoryDataRegion defaultRegion = new
VolatilePageMemoryDataRegion(
- engineConfig.defaultRegion(),
- ioRegistry, pageSize
- );
+ addDataRegion(DEFAULT_DATA_REGION_NAME, engineConfig.defaultRegion(),
pageSize);
- defaultRegion.start();
+ // TODO: IGNITE-17066 Add handling deleting/updating data regions
configuration
+ engineConfig.regions().listenElements(new
ConfigurationNamedListListener<>() {
Review Comment:
> they have to be registered in constructor, not during the start
Why?
--
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]