Revert IgnitionStart changes
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/54e34d13 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/54e34d13 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/54e34d13 Branch: refs/heads/ignite-2324 Commit: 54e34d13b0f1d510cee79700637a207c662c87b2 Parents: 468b20c Author: Pavel Tupitsyn <ptupit...@gridgain.com> Authored: Thu Jan 14 13:02:29 2016 +0300 Committer: Pavel Tupitsyn <ptupit...@gridgain.com> Committed: Thu Jan 14 13:02:29 2016 +0300 ---------------------------------------------------------------------- .../dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/54e34d13/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs index 26f74a1..4c8f1dc 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs @@ -57,7 +57,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged #region NATIVE METHODS: PROCESSOR - internal static void IgnitionStart(UnmanagedContext ctx, string cfgPath, string gridName, + internal static IUnmanagedTarget IgnitionStart(UnmanagedContext ctx, string cfgPath, string gridName, bool clientMode) { using (var mem = IgniteManager.Memory.Allocate().GetStream()) @@ -69,8 +69,10 @@ namespace Apache.Ignite.Core.Impl.Unmanaged try { - JNI.IgnitionStart(ctx.NativeContext, cfgPath0, gridName0, InteropFactoryId, + void* res = JNI.IgnitionStart(ctx.NativeContext, cfgPath0, gridName0, InteropFactoryId, mem.SynchronizeOutput()); + + return new UnmanagedTarget(ctx, res); } finally {