Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
a3e70f80
Commit
a3e70f80
authored
Nov 25, 2013
by
Robert Karlsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more error handling to remote mq
parent
68d8758d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
remote/exe/rs_remote_mq/src/rs_remote_mq.c
remote/exe/rs_remote_mq/src/rs_remote_mq.c
+13
-2
No files found.
remote/exe/rs_remote_mq/src/rs_remote_mq.c
View file @
a3e70f80
...
...
@@ -253,11 +253,22 @@ unsigned int bmq_send(remnode_item *remnode,
&
put_psb
,
&
put_uma
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
mq_sts
!=
PAMS__SUCCESS
)
{
if
(
mq_sts
==
PAMS__SUCCESS
)
{
if
(
put_psb
.
del_psb_status
<
0
)
{
if
(
put_psb
.
uma_psb_status
<
0
)
{
remtrans
->
ErrCount
++
;
errh_Error
(
"Send failed, message not recoverable. Queue %d, UMA status %d"
,
rn_mq
->
MyQueue
,
put_psb
.
uma_psb_status
,
0
);
}
else
{
errh_Error
(
"Message not deliverable, UMA action taken. Queue %d, PSB status %d"
,
rn_mq
->
MyQueue
,
put_psb
.
del_psb_status
,
0
);
}
}
if
(
debug
)
printf
(
"Sent message sts:%d psb:%d uma:%d
\n
"
,
(
int
)
mq_sts
,
(
int
)
put_psb
.
del_psb_status
,
(
int
)
put_psb
.
uma_psb_status
);
}
else
{
remtrans
->
ErrCount
++
;
errh_Error
(
"Send failed, queue %d, MQ status %d"
,
rn_mq
->
MyQueue
,
mq_sts
,
0
);
if
(
debug
)
printf
(
"Send failed sts:%d
\n
"
,
(
int
)
mq_sts
);
}
if
(
debug
)
printf
(
"Sent message %d
\n
"
,
(
int
)
mq_sts
);
return
(
STATUS_OK
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment