ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptupit...@apache.org
Subject ignite git commit: .NET: Thin client: Fix OP_BINARY_TYPE_GET schema passing format
Date Thu, 18 Jan 2018 18:25:15 GMT
Repository: ignite
Updated Branches:
  refs/heads/master fffba70a7 -> 5f23f85a6


.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/5f23f85a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/5f23f85a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/5f23f85a

Branch: refs/heads/master
Commit: 5f23f85a60e3e902d9b4014839fdeb8791e9ce5a
Parents: fffba70
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Thu Jan 18 21:25:05 2018 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Thu Jan 18 21:25: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/5f23f85a/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/5f23f85a/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);
                 }
             }
 


Mime
View raw message