Closed mhaberler closed 3 years ago
Sorry, the crash is a bug. I've fixed it. Please try the latest code on master.
unclear how to do this?
So far, redis-protobuf does not support setting a whole array or map field, i.e. replace the array with other one. And there's an issue to track it.
Sorry again for the inconvenience...
Regards
no problem, thanks for the quick fix!
verified the fix - great job!
By the way, it seems that you used the oneof
feature. However, I didn't write specific code to process this feature.
Although in your case, it works, I'm not sure if it has any problem. If you want to avoid this uncertainty, you can do some change with your protobuf definition:
Change this:
message Geometry {
oneof type {
Point point = 1;
MultiPoint multiPoint = 2;
LineString lineString = 3;
MultiLineString multiLineString = 4;
Polygon polygon = 5;
MultiPolygon multiPolygon = 6;
GeometryCollection geometryCollection = 7;
}
}
into:
message Geometry {
Point point = 1;
MultiPoint multiPoint = 2;
LineString lineString = 3;
MultiLineString multiLineString = 4;
Polygon polygon = 5;
MultiPolygon multiPolygon = 6;
GeometryCollection geometryCollection = 7;
}
Regards
so far no problems, will have an eye on it. Thanks!
used proto file
commands:
full crashlog is here, the key lines: