Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit494f3cb

Browse files
committed
Fix incorrect close() call in dsm_impl_mmap().
One improbable error-exit path in this function used close() whereit should have used CloseTransientFile(). This is unlikely to behit in the field, and I think the consequences wouldn't be awful(just an elog(LOG) bleat later). But a bug is a bug, so back-patchto 9.4 where this code came in.Pan BianDiscussion:https://postgr.es/m/152056616579.4966.583293218357089052@wrigleys.postgresql.org
1 parent5b0fa06 commit494f3cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/storage/ipc/dsm_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size,
923923

924924
/* Back out what's already been done. */
925925
save_errno=errno;
926-
close(fd);
926+
CloseTransientFile(fd);
927927
if (op==DSM_OP_CREATE)
928928
unlink(name);
929929
errno=save_errno;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp