No need to wrap pjdlog functions around with KEEP_ERRNO() macro.
MFC after: 3 days
This commit is contained in:
parent
00bddd18b3
commit
be1143efb9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225786
@ -293,8 +293,7 @@ hast_activemap_flush(struct hast_resource *res)
|
|||||||
PJDLOG_ASSERT((size % res->hr_local_sectorsize) == 0);
|
PJDLOG_ASSERT((size % res->hr_local_sectorsize) == 0);
|
||||||
if (pwrite(res->hr_localfd, buf, size, METADATA_SIZE) !=
|
if (pwrite(res->hr_localfd, buf, size, METADATA_SIZE) !=
|
||||||
(ssize_t)size) {
|
(ssize_t)size) {
|
||||||
KEEP_ERRNO(pjdlog_errno(LOG_ERR,
|
pjdlog_errno(LOG_ERR, "Unable to flush activemap to disk");
|
||||||
"Unable to flush activemap to disk"));
|
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user