plugin: Add component enum for storage backends

This commit is contained in:
Tim Wojtulewicz 2024-11-20 13:40:41 -07:00
parent aeedd25cff
commit e2b9e81c53
2 changed files with 3 additions and 0 deletions

View file

@ -45,6 +45,8 @@ void Component::Describe(ODesc* d) const {
case component::LOG_SERIALIZER: d->Add("Log Serializer"); break;
case component::STORAGE_BACKEND: d->Add("Storage Backend"); break;
default:
reporter->InternalWarning("unknown component type in plugin::Component::Describe");
d->Add("<unknown component type>");

View file

@ -33,6 +33,7 @@ enum Type {
CLUSTER_BACKEND, /// A cluster backend.
EVENT_SERIALIZER, /// A serializer for events, used by cluster backends.
LOG_SERIALIZER, /// A serializer for log batches, used by cluster backends.
STORAGE_BACKEND, /// A backend for the storage framework.
};
} // namespace component