Fix: mdsconnect of IDL API now always updates !MDS_SOCKET#3009
Fix: mdsconnect of IDL API now always updates !MDS_SOCKET#3009mwinkel-dev wants to merge 6 commits intoMDSplus:alphafrom
Conversation
| return | ||
| end | ||
|
|
||
| ; This procedure is likely obsolete |
There was a problem hiding this comment.
This procedure is not used anywhere in the MDSplus source code. Plus it appears to be replaced by the mdsconnect procedure.
However, there is a chance that customers have old IDL programs that use this routine.
We should select one of these options:
- delete the procedure, or
- keep the procedure, or
- add a print statement to it indicating that it is deprecated and the user should instead use
mdsconnect
| end | ||
|
|
||
|
|
||
| ; This procedure is likely obsolete |
There was a problem hiding this comment.
Delete, keep or deprecate?
|
This draft PR will probably be cancelled after some additional investigation. For more information, refer to the post on Issue #2996. |
|
Adding an optional Even though this draft PR now passes the automated builds, it is debatable whether bug #2996 should be fixed or not. |
|
This draft PR and the original code both pass the unmodified automated test, which proves that they are functionally equivalent. However, any change to existing code brings with it the risk of unintended consequences; an innocuous change can inadvertently introduce a subtle bug. An alternate approach is to add comments to the original code explaining that the optional |
Fixes issue #2996.
The IDL API has a system variable (i.e., global),
!MDS_SOCKET, used to store the most recent connection ID. It is now updated whenevermdsconnectestablishes a mdsip connection.Example output follows . . .