Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
83167cf2
Commit
83167cf2
authored
Aug 15, 2014
by
Giuseppe Lo Presti
Browse files
Fixed error reporting on file close
parent
380e9314
Changes
1
Hide whitespace changes
Inline
Side-by-side
rfio/rfio_callhandlers.c
View file @
83167cf2
...
...
@@ -159,6 +159,9 @@ int rfio_handle_close(void *ctx,
int
port
=
MOVERHANDLERPORT
;
if
(
internal_context
!=
NULL
)
{
if
(
close_status
)
{
error_msg
=
strdup
(
strerror
(
errno
));
}
if
(((
internal_context
->
flags
&
O_TRUNC
)
==
O_TRUNC
)
||
(
internal_context
->
one_byte_at_least
))
{
/* see also comment in rfio_handle_open */
/* This is a write */
...
...
@@ -191,13 +194,13 @@ int rfio_handle_close(void *ctx,
}
if
(
mover_close_file
(
port
,
internal_context
->
transferid
,
(
u_signed64
)
filestat
->
st_size
,
csumtype
,
csumvalue
,
&
close_status
,
&
error_msg
)
!=
0
)
{
serrno
=
close_status
;
(
*
logfunc
)(
LOG_ERR
,
"rfio_handle_close: mover_close_file failed
(%s)
for transferid=%s
\n
"
,
error
_msg
,
internal_context
->
transferid
);
(
*
logfunc
)(
LOG_ERR
,
"rfio_handle_close: mover_close_file failed for transferid=%s
with
error
: %s
\n
"
,
internal_context
->
transferid
,
error_msg
);
free
(
error_msg
);
}
else
{
forced_mover_exit_error
=
0
;
}
}
else
{
(
*
logfunc
)(
LOG_
INFO
,
"rfio_handle_close: no context given, nothing to do
\n
"
);
(
*
logfunc
)(
LOG_
DEBUG
,
"rfio_handle_close: no context given, nothing to do
\n
"
);
return
0
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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