Skip to content

Commit

Permalink
schema_registry/types: Add sequence_marker_type::mode
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Pope <ben@redpanda.com>
  • Loading branch information
BenPope committed May 13, 2024
1 parent 6ce966f commit 2776733
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/v/pandaproxy/schema_registry/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,22 +312,28 @@ struct subject_version {
};

// Very similar to topic_key_type, separate to avoid intermingling storage code
enum class seq_marker_key_type { invalid = 0, schema, delete_subject, config };
enum class seq_marker_key_type {
invalid = 0,
schema,
delete_subject,
config,
mode
};

constexpr std::string_view to_string_view(seq_marker_key_type v) {
switch (v) {
case seq_marker_key_type::schema:
return "schema";
break;
case seq_marker_key_type::delete_subject:
return "delete_subject";
break;
case seq_marker_key_type::config:
return "config";
case seq_marker_key_type::mode:
return "mode";
case seq_marker_key_type::invalid:
break;
default:
return "invalid";
}
return "invalid";
}

// Record the sequence+node where updates were made to a subject,
Expand Down

0 comments on commit 2776733

Please sign in to comment.