Repository: ignite Updated Branches: refs/heads/ignite-2.4 57479ec56 -> bd6be8a46
.NET: Thin client: Fix OP_BINARY_TYPE_GET schema passing format Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/bd6be8a4 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/bd6be8a4 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/bd6be8a4 Branch: refs/heads/ignite-2.4 Commit: bd6be8a4653322905a3b63850c7e033ce3801ce5 Parents: 57479ec Author: Pavel Tupitsyn <[email protected]> Authored: Thu Jan 18 21:25:05 2018 +0300 Committer: Pavel Tupitsyn <[email protected]> Committed: Thu Jan 18 21:26:05 2018 +0300 ---------------------------------------------------------------------- .../internal/processors/platform/utils/PlatformUtils.java | 8 +++++++- .../Apache.Ignite.Core/Impl/Binary/Metadata/BinaryType.cs | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/bd6be8a4/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/utils/PlatformUtils.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/utils/PlatformUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/utils/PlatformUtils.java index b65ca04..2954a9e 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/utils/PlatformUtils.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/platform/utils/PlatformUtils.java @@ -1144,7 +1144,13 @@ public class PlatformUtils { for (BinarySchema schema : schemas) { writer.writeInt(schema.schemaId()); - writer.writeIntArray(schema.fieldIds()); + + int[] ids = schema.fieldIds(); + writer.writeInt(ids.length); + + for (int id : ids) { + writer.writeInt(id); + } } } http://git-wip-us.apache.org/repos/asf/ignite/blob/bd6be8a4/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Metadata/BinaryType.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Metadata/BinaryType.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Metadata/BinaryType.cs index 514f2e2..06794b5 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Metadata/BinaryType.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/Metadata/BinaryType.cs @@ -172,7 +172,15 @@ namespace Apache.Ignite.Core.Impl.Binary.Metadata for (var i = 0; i < cnt; i++) { - _schema.Add(reader.ReadInt(), reader.ReadIntArray()); + var schemaId = reader.ReadInt(); + + var ids = new int[reader.ReadInt()]; + for (var j = 0; j < ids.Length; j++) + { + ids[j] = reader.ReadInt(); + } + + _schema.Add(schemaId, ids); } }
