1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Disable multiplexing of master-journal files in the test_multiplex.c module.

FossilOrigin-Name: b8684df395b5585a9428417c2bfd076515560f19
This commit is contained in:
dan
2015-03-12 19:12:30 +00:00
parent 0a0d0560ab
commit 63c088e783
4 changed files with 92 additions and 8 deletions

View File

@@ -573,6 +573,9 @@ static int multiplexOpen(
rc = pSubOpen->pMethods->xFileSize(pSubOpen, &sz);
if( rc==SQLITE_OK && zName ){
int bExists;
if( flags & SQLITE_OPEN_MASTER_JOURNAL ){
pGroup->bEnabled = 0;
}else
if( sz==0 ){
if( flags & SQLITE_OPEN_MAIN_JOURNAL ){
/* If opening a main journal file and the first chunk is zero