You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2017/07/12 10:22:45 UTC

ignite git commit: .NET: Update defaults in config

Repository: ignite
Updated Branches:
  refs/heads/ignite-5479 fbc4b67c0 -> ee44b5ff4


.NET: Update defaults in config


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/ee44b5ff
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/ee44b5ff
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/ee44b5ff

Branch: refs/heads/ignite-5479
Commit: ee44b5ff414d33863c1029fa8273e96e51538ea3
Parents: fbc4b67
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Wed Jul 12 13:22:35 2017 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Wed Jul 12 13:22:35 2017 +0300

----------------------------------------------------------------------
 .../IgniteConfigurationTest.cs                        |  2 ++
 .../PersistentStore/PersistentStoreConfiguration.cs   | 14 ++++++++++++++
 2 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ee44b5ff/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationTest.cs
index 8304b6a..0aa9e97 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationTest.cs
@@ -545,6 +545,8 @@ namespace Apache.Ignite.Core.Tests
             Assert.IsFalse(cfg.MetricsEnabled);
             Assert.AreEqual(PersistentStoreConfiguration.DefaultSubIntervals, cfg.SubIntervals);
             Assert.AreEqual(PersistentStoreConfiguration.DefaultRateTimeInterval, cfg.RateTimeInterval);
+            Assert.AreEqual(PersistentStoreConfiguration.DefaultWalStorePath, cfg.WalStorePath);
+            Assert.AreEqual(PersistentStoreConfiguration.DefaultWalArchivePath, cfg.WalArchivePath);
         }
 
         /// <summary>

http://git-wip-us.apache.org/repos/asf/ignite/blob/ee44b5ff/modules/platforms/dotnet/Apache.Ignite.Core/PersistentStore/PersistentStoreConfiguration.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/PersistentStore/PersistentStoreConfiguration.cs b/modules/platforms/dotnet/Apache.Ignite.Core/PersistentStore/PersistentStoreConfiguration.cs
index 4d605ee..cac6cc8 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/PersistentStore/PersistentStoreConfiguration.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/PersistentStore/PersistentStoreConfiguration.cs
@@ -92,6 +92,16 @@ namespace Apache.Ignite.Core.PersistentStore
         public static readonly TimeSpan DefaultRateTimeInterval = TimeSpan.FromSeconds(60);
 
         /// <summary>
+        /// Default value for <see cref="WalStorePath"/>.
+        /// </summary>
+        public const string DefaultWalStorePath = "db/wal";
+
+        /// <summary>
+        /// Default value for <see cref="WalArchivePath"/>.
+        /// </summary>
+        public const string DefaultWalArchivePath = "db/wal/archive";
+
+        /// <summary>
         /// Initializes a new instance of the <see cref="PersistentStoreConfiguration"/> class.
         /// </summary>
         public PersistentStoreConfiguration()
@@ -108,6 +118,8 @@ namespace Apache.Ignite.Core.PersistentStore
             WalFsyncDelayNanos = DefaultWalFsyncDelayNanos;
             RateTimeInterval = DefaultRateTimeInterval;
             SubIntervals = DefaultSubIntervals;
+            WalArchivePath = DefaultWalArchivePath;
+            WalStorePath = DefaultWalStorePath;
         }
 
         /// <summary>
@@ -222,12 +234,14 @@ namespace Apache.Ignite.Core.PersistentStore
         /// <summary>
         /// Gets or sets the path to the directory where WAL (Write Ahead Log) is stored.
         /// </summary>
+        [DefaultValue(DefaultWalStorePath)]
         public string WalStorePath { get; set; }
 
         /// <summary>
         /// Gets or sets the path to the directory where WAL (Write Ahead Log) archive is stored.
         /// Every WAL segment will be fully copied to this directory before it can be reused for WAL purposes.
         /// </summary>
+        [DefaultValue(DefaultWalArchivePath)]
         public string WalArchivePath { get; set; }
 
         /// <summary>