levy5307 commented on a change in pull request #891:
URL: https://github.com/apache/incubator-pegasus/pull/891#discussion_r790385896



##########
File path: src/server/hashkey_transform.h
##########
@@ -46,7 +47,7 @@ class HashkeyTransform : public rocksdb::SliceTransform
         }
 
         // hash_key_len is in big endian
-        uint16_t hash_key_len = be16toh(*(int16_t *)(src.data()));
+        uint16_t hash_key_len = ::dsn::endian::ntoh(*(uint16_t *)(src.data()));

Review comment:
       ::dsn::endian::ntoh --> dsn::endian::ntoh




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to