- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit2c7c6c4
committed
More consistent behavior of GetDataDirectoryCreatePerm on Windows
On Windows, GetDataDirectoryCreatePerm() just did nothing. The waythe code in some callers is structured, this is the first functionthat tries to access the data directory. So it also ends up the placethat is responsible for reporting that a data directory does not existor similar. Therefore, on Windows, these scenarios end up onpotentially completely different code paths.To unify this, to make testing more consistent across platforms, haveGetDataDirectoryCreatePerm() run the stat() call on Windows as well,even though it won't do anything with the result. That way, filesystem errors are reporting to callers in the same way as onnon-Windows.Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>Discussion:https://www.postgresql.org/message-id/15a59bca-0383-183c-9383-0446da9b87e1%40eisentraut.org1 parent151ffcf commit2c7c6c4
1 file changed
+5
-9
lines changedLines changed: 5 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
| 62 | + | |
| 63 | + | |
63 | 64 |
| |
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
67 |
| - | |
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
| 78 | + | |
78 | 79 |
| |
79 | 80 |
| |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 | 81 |
| |
| 82 | + | |
| 83 | + | |
88 | 84 |
| |
89 | 85 |
| |
90 | 86 |
| |
|
0 commit comments
Comments
(0)