Skip to content

Commit

Permalink
DBZ-1052 DBZ-1746 Add unknown message type
Browse files Browse the repository at this point in the history
  • Loading branch information
jpechane authored and gunnarmorling committed Jan 30, 2020
1 parent 870ecfa commit e29a258
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
1 change: 1 addition & 0 deletions proto/pg_logicaldec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ option java_outer_classname = "PgProto";
option optimize_for = SPEED;

enum Op {
UNKNOWN = -1;
INSERT = 0;
UPDATE = 1;
DELETE = 2;
Expand Down
24 changes: 13 additions & 11 deletions src/proto/pg_logicaldec.pb-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,24 +565,26 @@ const ProtobufCMessageDescriptor decoderbufs__row_message__descriptor =
(ProtobufCMessageInit) decoderbufs__row_message__init,
NULL,NULL,NULL /* reserved[123] */
};
static const ProtobufCEnumValue decoderbufs__op__enum_values_by_number[5] =
static const ProtobufCEnumValue decoderbufs__op__enum_values_by_number[6] =
{
{ "UNKNOWN", "DECODERBUFS__OP__UNKNOWN", -1 },
{ "INSERT", "DECODERBUFS__OP__INSERT", 0 },
{ "UPDATE", "DECODERBUFS__OP__UPDATE", 1 },
{ "DELETE", "DECODERBUFS__OP__DELETE", 2 },
{ "BEGIN", "DECODERBUFS__OP__BEGIN", 3 },
{ "COMMIT", "DECODERBUFS__OP__COMMIT", 4 },
};
static const ProtobufCIntRange decoderbufs__op__value_ranges[] = {
{0, 0},{0, 5}
{-1, 0},{0, 6}
};
static const ProtobufCEnumValueIndex decoderbufs__op__enum_values_by_name[5] =
{
{ "BEGIN", 3 },
{ "COMMIT", 4 },
{ "DELETE", 2 },
{ "INSERT", 0 },
{ "UPDATE", 1 },
static const ProtobufCEnumValueIndex decoderbufs__op__enum_values_by_name[6] =
{
{ "BEGIN", 4 },
{ "COMMIT", 5 },
{ "DELETE", 3 },
{ "INSERT", 1 },
{ "UNKNOWN", 0 },
{ "UPDATE", 2 },
};
const ProtobufCEnumDescriptor decoderbufs__op__descriptor =
{
Expand All @@ -591,9 +593,9 @@ const ProtobufCEnumDescriptor decoderbufs__op__descriptor =
"Op",
"Decoderbufs__Op",
"decoderbufs",
5,
6,
decoderbufs__op__enum_values_by_number,
5,
6,
decoderbufs__op__enum_values_by_name,
1,
decoderbufs__op__value_ranges,
Expand Down
1 change: 1 addition & 0 deletions src/proto/pg_logicaldec.pb-c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e29a258

Please sign in to comment.