forked from duckdb/duckdb
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duckdb#9342: WAL - instead of using FileExists -> OpenFile, use O…
…penFile with FILE_FLAGS_NULL_IF_NOT_EXISTS
- Loading branch information
Showing
6 changed files
with
54 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# name: test/sql/storage/concurrent_attach.test_slow | ||
# description: Test concurrent attaching | ||
# group: [storage] | ||
|
||
concurrentforeach name foo bar | ||
|
||
statement ok | ||
attach '__TEST_DIR__/${name}.duckdb' AS ${name} | ||
|
||
statement ok | ||
create table ${name}.${name}(${name} bigint) | ||
|
||
loop i 0 1000 | ||
|
||
statement ok | ||
insert into ${name}.${name} select sum(i) from range((random()*1000000.0)::INT) r(i) | ||
|
||
statement ok | ||
checkpoint ${name} | ||
|
||
statement ok | ||
detach ${name} | ||
|
||
statement ok | ||
attach '__TEST_DIR__/${name}.duckdb' AS ${name} | ||
|
||
endloop | ||
|
||
query I | ||
select count(*) FROM ${name}.${name} | ||
---- | ||
1000 | ||
|
||
endloop |