aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-02-24 15:57:13 +0000
committerdrh <drh@noemail.net>2012-02-24 15:57:13 +0000
commit1a3dd3d445313fb5f1ea8baf459aa80cda6e6fb9 (patch)
tree8a18df2bc433313862e3610a2f3d2c81a7ee2dd6 /src
parent70708600b533734a2ef7e2312674692f513a640c (diff)
downloadsqlite-1a3dd3d445313fb5f1ea8baf459aa80cda6e6fb9.tar.gz
sqlite-1a3dd3d445313fb5f1ea8baf459aa80cda6e6fb9.zip
Fix the multiplexor so that it works with WAL mode and 8+3 filenames.
FossilOrigin-Name: a9fcb46bc08c29aebaf3bc999f45846c3c320f68
Diffstat (limited to 'src')
-rw-r--r--src/test_multiplex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test_multiplex.c b/src/test_multiplex.c
index af41c0b61..ecef3f08c 100644
--- a/src/test_multiplex.c
+++ b/src/test_multiplex.c
@@ -256,7 +256,7 @@ static void multiplexFilename(
int i;
for(i=n-1; i>0 && i>=n-4 && zOut[i]!='.'; i--){}
if( i>=n-4 ) n = i+1;
- if( flags & SQLITE_OPEN_MAIN_JOURNAL ){
+ if( flags & (SQLITE_OPEN_MAIN_JOURNAL|SQLITE_OPEN_WAL) ){
/* The extensions on overflow files for main databases are 001, 002,
** 003 and so forth. To avoid name collisions, add 400 to the
** extensions of journal files so that they are 401, 402, 403, ....