This is an automated email from the ASF dual-hosted git repository.
mmartell pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new 6995014 Add shorts and longs to read_cacheable (#940)
6995014 is described below
commit 6995014767e5e9ee6de684c91cebc9cea62ffe74
Author: Michael Martell <[email protected]>
AuthorDate: Thu Mar 3 07:47:53 2022 -0800
Add shorts and longs to read_cacheable (#940)
---
tools/gnmsg/read_values.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/gnmsg/read_values.py b/tools/gnmsg/read_values.py
index 94561a5..fc8f4ea 100644
--- a/tools/gnmsg/read_values.py
+++ b/tools/gnmsg/read_values.py
@@ -207,9 +207,15 @@ def read_cacheable(message_bytes, offset):
message_bytes, offset, read_byte_value
)
value["Value"] = "False" if bool_val == 0 else "True"
+ elif value["DSCode"] == "CacheableInt16":
+ (int_val, offset) = call_reader_function(message_bytes, offset,
read_short_value)
+ value["Value"] = int_val
elif value["DSCode"] == "CacheableInt32":
(int_val, offset) = call_reader_function(message_bytes, offset,
read_int_value)
value["Value"] = int_val
+ elif value["DSCode"] == "CacheableInt64":
+ (int_val, offset) = call_reader_function(message_bytes, offset,
read_long_value)
+ value["Value"] = int_val
elif value["DSCode"] == "NullObj":
# Gah! Nasty little bug in the protocol here. NC writes '1' in the
# size field for a NullObj, but the payload is actually ZERO bytes,