aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2025-03-26 17:05:29 +0000
committerdrh <>2025-03-26 17:05:29 +0000
commita6f6fa8675cd24dd784093979f12f10b8a155a2f (patch)
tree4ef5bbf8ceae3710b477adfe08e77bbee557a5c3 /src
parent4a6de7ff7cd1ab9e43dacd839659c203032ba887 (diff)
downloadsqlite-a6f6fa8675cd24dd784093979f12f10b8a155a2f.tar.gz
sqlite-a6f6fa8675cd24dd784093979f12f10b8a155a2f.zip
On winOpen(), redo the read-only test on every retry attempt. Just
don't retry the winAccess() call. FossilOrigin-Name: ccdd67ad9a508530ccfcec582410768c24bca4eb8b05939577fb99a50dd44b15
Diffstat (limited to 'src')
-rw-r--r--src/os_win.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_win.c b/src/os_win.c
index 29680b6eb..a545d7310 100644
--- a/src/os_win.c
+++ b/src/os_win.c
@@ -5473,7 +5473,7 @@ static int winOpen(
dwCreationDisposition,
&extendedParameters);
if( h!=INVALID_HANDLE_VALUE ) break;
- if( isReadWrite && cnt==0 ){
+ if( isReadWrite ){
int rc2;
sqlite3BeginBenignMalloc();
rc2 = winAccess(pVfs, zUtf8Name, SQLITE_ACCESS_READ|NORETRY, &isRO);
@@ -5490,7 +5490,7 @@ static int winOpen(
dwFlagsAndAttributes,
NULL);
if( h!=INVALID_HANDLE_VALUE ) break;
- if( isReadWrite && cnt==0 ){
+ if( isReadWrite ){
int rc2;
sqlite3BeginBenignMalloc();
rc2 = winAccess(pVfs, zUtf8Name, SQLITE_ACCESS_READ|NORETRY, &isRO);
@@ -5510,7 +5510,7 @@ static int winOpen(
dwFlagsAndAttributes,
NULL);
if( h!=INVALID_HANDLE_VALUE ) break;
- if( isReadWrite && cnt==0 ){
+ if( isReadWrite ){
int rc2;
sqlite3BeginBenignMalloc();
rc2 = winAccess(pVfs, zUtf8Name, SQLITE_ACCESS_READ|NORETRY, &isRO);