Commit bea97617 authored by jiangrujie's avatar jiangrujie

+ Fix a bug that repeated bytes key=1 regard as Map

Change-Id: I89d07fed674640d28886c36b6bdee1dfacd34845
parent 31958a76
......@@ -18,6 +18,7 @@ bool IsProtobufMap(const FieldDescriptor* field) {
}
const FieldDescriptor* key_desc = entry_desc->field(KEY_INDEX);
if (NULL == key_desc
|| key_desc->is_repeated()
|| key_desc->cpp_type() != FieldDescriptor::CPPTYPE_STRING
|| strcmp(KEY_NAME, key_desc->name().c_str()) != 0) {
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment