Erixonich commented on a change in pull request #9612:
URL: https://github.com/apache/ignite/pull/9612#discussion_r762020941
##########
File path:
modules/platforms/dotnet/Apache.Ignite.Core/Configuration/DataStorageConfiguration.cs
##########
@@ -478,13 +491,37 @@ internal void Write(IBinaryRawWriter writer)
/// Gets or sets the size of a memory chunk reserved for system needs.
/// </summary>
[DefaultValue(DefaultSystemRegionInitialSize)]
- public long SystemRegionInitialSize { get; set; }
+ public long SystemRegionInitialSize
+ {
+ get => SystemDataRegionConfiguration?.InitialSize ??
SystemDataRegionConfiguration.DefaultInitialSize;
+ set
+ {
+ if (SystemDataRegionConfiguration == null)
+ {
+ SystemDataRegionConfiguration = new
SystemDataRegionConfiguration();
+ }
+
+ SystemDataRegionConfiguration.InitialSize = value;
+ }
+ }
/// <summary>
/// Gets or sets the maximum memory region size reserved for system
needs.
/// </summary>
[DefaultValue(DefaultSystemRegionMaxSize)]
- public long SystemRegionMaxSize { get; set; }
+ public long SystemRegionMaxSize
+ {
+ get => SystemDataRegionConfiguration?.MaxSize ??
SystemDataRegionConfiguration.DefaultMaxSize;
+ set
+ {
+ if (SystemDataRegionConfiguration == null)
+ {
+ SystemDataRegionConfiguration = new
SystemDataRegionConfiguration();
Review comment:
I suppose it is a limitation for the standard DefaultValueAttribute.
--
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]