broker/main: Adapt enum values to agree with comm.bif

Logic to detect this error already existed, but due to enum identifiers
not having a value set, it never triggered before.

Should probably backport this one.
This commit is contained in:
Arne Welzel 2025-04-03 16:28:50 +02:00
parent cb610bdea2
commit 6bc36e8cf8

View file

@ -207,24 +207,26 @@ export {
PEER_INVALID = 3, PEER_INVALID = 3,
## Remote peer not listening. ## Remote peer not listening.
PEER_UNAVAILABLE = 4, PEER_UNAVAILABLE = 4,
## Remote peer disconnected during the handshake.
PEER_DISCONNECT_DURING_HANDSHAKE = 5,
## A peering request timed out. ## A peering request timed out.
PEER_TIMEOUT = 5, PEER_TIMEOUT = 6,
## Master with given name already exists. ## Master with given name already exists.
MASTER_EXISTS = 6, MASTER_EXISTS = 7,
## Master with given name does not exist. ## Master with given name does not exist.
NO_SUCH_MASTER = 7, NO_SUCH_MASTER = 8,
## The given data store key does not exist. ## The given data store key does not exist.
NO_SUCH_KEY = 8, NO_SUCH_KEY = 9,
## The store operation timed out. ## The store operation timed out.
REQUEST_TIMEOUT = 9, REQUEST_TIMEOUT = 10,
## The operation expected a different type than provided. ## The operation expected a different type than provided.
TYPE_CLASH = 10, TYPE_CLASH = 11,
## The data value cannot be used to carry out the desired operation. ## The data value cannot be used to carry out the desired operation.
INVALID_DATA = 11, INVALID_DATA = 12,
## The storage backend failed to execute the operation. ## The storage backend failed to execute the operation.
BACKEND_FAILURE = 12, BACKEND_FAILURE = 13,
## The storage backend failed to execute the operation. ## The storage backend failed to execute the operation.
STALE_DATA = 13, STALE_DATA = 14,
## Catch-all for a CAF-level problem. ## Catch-all for a CAF-level problem.
CAF_ERROR = 100 CAF_ERROR = 100
}; };