Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.4.3
-
None
Description
MaxScale command `list sessions` can report "Invalid State" which looking at the source code is a catch-all non-state:
case SESSION_STATE_ALLOC: |
return "Session Allocated"; |
case SESSION_STATE_DUMMY: |
return "Dummy Session"; |
case SESSION_STATE_READY: |
return "Session Ready"; |
case SESSION_STATE_ROUTER_READY: |
return "Session ready for routing"; |
case SESSION_STATE_LISTENER: |
return "Listener Session"; |
case SESSION_STATE_LISTENER_STOPPED: |
return "Stopped Listener Session"; |
#ifdef SS_DEBUG
|
case SESSION_STATE_STOPPING: |
return "Stopping session"; |
case SESSION_STATE_TO_BE_FREED: |
return "Session to be freed"; |
case SESSION_STATE_FREE: |
return "Freed session"; |
#endif
|
default: |
return "Invalid State"; |
I think sessions should always have a meaningful state.