SQLite

All files named ”src/test_multiplex.c”
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for src/test_multiplex.c

2025-03-06
13:38
[82f0aa8eee] part of check-in [205979813c] Cygwin-centric fixes from Jan Nijtmans. (check-in: [205979813c] user: stephan branch: cygwin-fixes, size: 46436)
2024-07-30
15:49
[b99d7f43ec] part of check-in [6e5bb48a74] First attempt at getting the build to work with Tcl 9.0. (check-in: [6e5bb48a74] user: drh branch: tcl9, size: 46430)
2023-06-07
08:40
[7047916123] part of check-in [26c1bb4bd9] Add a C-source spell-checking facility. make misspell (on Nix) (check-in: [26c1bb4bd9] user: larrybr branch: spell-check, size: 46558)
2022-11-01
18:56
[d8bc260a57] part of check-in [de829770aa] Fix harmless compiler warnings. (check-in: [de829770aa] user: drh branch: sqlite3_filename, size: 46601)
2021-10-29
12:29
[1b23782212] part of check-in [39c5e80dbf] Add pragmas "multiplex_enabled", "multiplex_chunksize", and "multiplex_filecount" to the multiplexer implementation. (check-in: [39c5e80dbf] user: drh branch: trunk, size: 46594)
2020-07-29
16:18
[ed2e55456a] part of check-in [a80ae2c98b] Dozens and dozens of typo fixes in comments. This change adds no value to the end product and is disruptive, so it is questionable whether or not it will ever land on trunk. (check-in: [a80ae2c98b] user: drh branch: typos, size: 44726)
2020-07-24
09:17
[2ccf35551c] part of check-in [270ac1a0f2] Fix other potentiall pointer aliasing problems associated with subclassing of the sqlite3_file object for various VFS implementations. (check-in: [270ac1a0f2] user: drh branch: trunk, size: 44725)
2020-06-19
11:34
[d0ee44ec77] part of check-in [7bb08b1bfc] Refactoring various names. No changes in the resulting machine code. (check-in: [7bb08b1bfc] user: drh branch: trunk, size: 44753)
2020-02-18
19:49
[46e278397b] part of check-in [9469f36ac8] Add the new sqlite3_create_filename() and sqlite3_free_filename() interfaces for use by Shims. Use these interfaces inside the multiplexor. (check-in: [9469f36ac8] user: drh branch: trunk, size: 44754)
2020-01-28
16:55
[e5fac104a0] part of check-in [912148913c] Fix a 4 byte OOB read in test_multiplex.c. (check-in: [912148913c] user: dan branch: trunk, size: 44624)
2016-10-27
14:51
[e054459f76] part of check-in [6374978e8f] Remove the mutex from test_multiplex.c. (check-in: [6374978e8f] user: dan branch: trunk, size: 44603)
2016-08-01
14:35
[7c5b218d85] part of check-in [b6ea2f21f6] Avoid making unnecessary changes to the signatures of the sqlite3_auto_extension() and sqlite3_cancel_auto_extension() interfaces. (check-in: [b6ea2f21f6] user: drh branch: trunk, size: 48412)
2016-07-28
22:23
[371d3874fd] part of check-in [3ea567c4b0] Make the extension auto-loading mechanism work with the __stdcall calling convention. Also, fix a couple Tcl command calling conventions missed in the previous check-in. (check-in: [3ea567c4b0] user: mistachkin branch: callbackConv, size: 48397)
17:11
[af2792ec44] part of check-in [f2f1323cc4] Make sure the SQLITE_TCLAPI macro is always defined and use it for all callback functions that must interface with the Tcl C API. (check-in: [f2f1323cc4] user: mistachkin branch: callbackConv, size: 48404)
14:37
[a0bcea72bc] part of check-in [e8be3dfeab] Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention. (check-in: [e8be3dfeab] user: mistachkin branch: callbackConv, size: 48289)
2016-04-12
20:05
[eafc567ebe] part of check-in [ab69527c16] More harmless compiler warning fixes. (check-in: [ab69527c16] user: mistachkin branch: warnings, size: 48214)
2016-03-28
11:01
[6a9de820fc] part of check-in [f6a88cccbc] Fix the multiplexor so that it does not assume that the xGetLastError method is non-NULL in the child VFS. (check-in: [f6a88cccbc] user: drh branch: trunk, size: 48184)
2015-12-03
11:51
[6a088d8d9d] part of check-in [9d2c62b04e] Improve concurrency in test_multiplex.c. Add a switch to "threadtest3" allowing it to run using the multiplexor VFS. (check-in: [9d2c62b04e] user: dan branch: trunk, size: 48111)
2015-04-29
16:50
[9fefd23f6c] part of check-in [48f553b05c] Use sqlite3_malloc64() in place of sqlite3_malloc() internally. (check-in: [48f553b05c] user: drh branch: trunk, size: 48116)
2015-04-19
21:43
[4dfb159e5c] part of check-in [d05becd873] Fix harmless compiler warnings seen with MSVC 2015. (check-in: [d05becd873] user: mistachkin branch: vsix2015, size: 48106)
2015-03-12
19:12
[97813565da] part of check-in [b8684df395] Disable multiplexing of master-journal files in the test_multiplex.c module. (check-in: [b8684df395] user: dan branch: trunk, size: 48089)
2015-03-06
04:37
[61edf02530] part of check-in [8c1e85aab9] Clearification of some documentation text. Added requirements marks. (check-in: [8c1e85aab9] user: drh branch: trunk, size: 47993)
2015-01-12
19:59
[72c0ad1e97] part of check-in [44375a34e5] Silence some harmless uninitialized local variable warnings. (check-in: [44375a34e5] user: mistachkin branch: msvcW4, size: 47279)
19:49
[0ac6d9197e] part of check-in [923fd66031] Harmless compiler warning fixes for 'testfixture' and the miscellaneous extensions when built with the MSVC makefile. (check-in: [923fd66031] user: mistachkin branch: msvcW4, size: 47275)
2014-09-23
18:30
[caadb62cc7] part of check-in [d2962a5f38] Add the "multiplex_truncate" PRAGMA to the multiplexor extension, for querying and setting the truncate flag on a database connection. (check-in: [d2962a5f38] user: drh branch: trunk, size: 47260)
2014-07-30
15:43
[ca90057438] part of check-in [c7303d0139] Add the "eForce" parameter to the sqlite3_multiplex_shutdown() entry point in test_multiplex.c. Shutdown is forced if true. Shutdown is not done if there are pending database connections and eForce is false, but an error log entry is made instead. (check-in: [c7303d0139] user: drh branch: trunk, size: 46530)
2013-11-08
17:03
[9f304bf041] part of check-in [830629d31d] Merge the Cygwin directory separator fix. Also fix a C++-ism in the multiplexor code so that it will compile on MSVC. (check-in: [830629d31d] user: drh branch: trunk, size: 46221)
2013-10-21
13:15
[6f63947cca] part of check-in [a00d2ed49c] Drop the mutex on the multiplexor before entering the xRead VFS call. (check-in: [a00d2ed49c] user: drh branch: multiplex-parallel-read, size: 46205)
2013-04-29
03:09
[5d691eeb6c] part of check-in [05ba5e23fc] More refinements to Windows OSTRACE usage. Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes. (check-in: [05ba5e23fc] user: mistachkin branch: winOsTrace, size: 46009)
2013-03-21
21:20
[0decc630b6] part of check-in [6f6e2d5094] Many spelling fixes in comments. No changes to code. (check-in: [6f6e2d5094] user: mistachkin branch: trunk, size: 46033)
2012-08-20
16:08
[ac0fbc1748] part of check-in [7653973a52] Silence harmless compiler warnings in the test code. (check-in: [7653973a52] user: drh branch: trunk, size: 46033)
2012-04-19
18:04
[66dcfca001] part of check-in [3281972eaa] Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also in tclsqlite.c and in the FTS4 module. (check-in: [3281972eaa] user: drh branch: trunk, size: 46025)
2012-04-04
13:58
[3dffd0fe6c] part of check-in [9e1e2fe295] Fix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES. (check-in: [9e1e2fe295] user: drh branch: trunk, size: 46020)
13:51
[42967feac8] part of check-in [627eff32a2] Fix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES. (check-in: [627eff32a2] user: drh branch: nx-devkit, size: 44649)
13:47
[7fce6176ce] part of check-in [e6806f0dc6] In the multiplexor extension, improve the error logging when a chunk fails to open. (check-in: [e6806f0dc6] user: drh branch: nx-devkit, size: 44641)
13:43
[151f66e79b] part of check-in [781453c686] In the multiplexor extension, improve the error logging when a chunk fails to open. (check-in: [781453c686] user: drh branch: trunk, size: 46012)
2012-03-30
14:59
[30ca034895] part of check-in [cb7a850439] Fix MSVC compiler warnings in test code. (check-in: [cb7a850439] user: drh branch: trunk, size: 45682)
2012-02-28
11:52
[0404a61d77] part of check-in [c267893a08] Fix a case where an error code was being overwritten in multiplexDelete(). (check-in: [c267893a08] user: dan branch: trunk, size: 45672)
2012-02-27
14:28
[0b3111a8c1] part of check-in [e44e26771e] Fix the xDelete implementation of the multiplexor VFS so that it correctly deletes overflow WAL files. (check-in: [e44e26771e] user: drh branch: trunk, size: 45619)
2012-02-24
16:13
[87fcd0b643] part of check-in [d6850667ea] Separate multiplexor overflow pages for -wal and -journal files into separate namespaces when in 8+3 filename mode. (check-in: [d6850667ea] user: drh branch: trunk, size: 45226)
15:57
[31fb992ab3] part of check-in [a9fcb46bc0] Fix the multiplexor so that it works with WAL mode and 8+3 filenames. (check-in: [a9fcb46bc0] user: drh branch: trunk, size: 44947)
2012-01-14
00:42
[afab2c9d29] part of check-in [6da0821a47] In the multiplexor routine that determines the size of an overflow file, return 0 and leave the error code unchanges if there were prior errors. This prevents some I/O errors from going unreported in nx-devkit tests. (check-in: [6da0821a47] user: drh branch: trunk, size: 44929)
2012-01-10
23:18
[67c210e2cd] part of check-in [cb774b26e1] Only require double-zero terminators on database filenames, not any every files supplied to the xOpen method. This backs out [2544f233f1]. Also refactor the fillInUnixFile() routine in os_unix.c to reduce the number of parameters. (check-in: [cb774b26e1] user: drh branch: trunk, size: 44907)
2012-01-09
14:57
[8e8a421197] part of check-in [2f8c62c337] Cherry-pick the fix to surplus overflow files in the multiplexor, check-in [1238619756c0c] in the trunk. (check-in: [2f8c62c337] user: drh branch: nx-devkit, size: 44311)
13:41
[6415713a7f] part of check-in [1238619756] Make sure the multiplexor does not create unnecessary overflow files. (check-in: [1238619756] user: drh branch: trunk, size: 44845)
11:37
[5dc22dbeb4] part of check-in [12f5b8c9c9] Have test_multiplex.c add a second nul-terminator byte to the strings that it passes to the xOpen method of the underlying VFS, in case that VFS passes the string to sqlite3_uri_parameter() or similar. (check-in: [12f5b8c9c9] user: dan branch: trunk, size: 44903)
2011-12-30
10:54
[2bf2eb36c9] part of check-in [26a513a8d2] Minor changes to fix compilation with SQLITE_OMIT_WAL and SQLITE_OMIT_WSD defined. (check-in: [26a513a8d2] user: dan branch: trunk, size: 44031)
2011-12-23
00:07
[7a41891cda] part of check-in [83d26b9a91] Add interfaces sqlite3_uri_boolean() and sqlite3_uri_int64() which are wrappers around sqlite3_uri_parameter() combined with internal routines for converting strings to booleans and 64-bit integers. (check-in: [83d26b9a91] user: drh branch: trunk, size: 43951)
2011-12-16
05:50
[6e07b94e2f] part of check-in [bb40338887] Tweaks to the way multiplexSubOpen() works, for backwards compatibility. (check-in: [bb40338887] user: drh branch: nx-devkit, size: 44369)
05:09
[ccc5f2feae] part of check-in [022bf427c2] Fix a potential infinite loop (inserted by the previous check-in) on the multiplexWrite() method of the multiplexor. (check-in: [022bf427c2] user: drh branch: nx-devkit, size: 44327)
04:57
[993f930c9c] part of check-in [5aefef04d6] The xTruncate method for the multiplexor now changes surplus overflow files to zero-length by default. Or if the "truncate" query parameter is used, it actually deletes the surplus overflow files. This allows VACUUM to shrink the database again. (check-in: [5aefef04d6] user: drh branch: nx-devkit, size: 44330)
2011-12-15
17:00
[c87d27283e] part of check-in [3af1feaa35] When deleting a file with the multiplexor VFS, also delete any overflow files that exist. (check-in: [3af1feaa35] user: dan branch: nx-devkit, size: 43135)
13:29
[7b65eea8b3] part of check-in [e05f8a2998] Make sure the chunksize in test_multiplex does not cause the pending byte to fall near the end of a chunk. Adjust the chunksize upward as necessary to prevent this. (check-in: [e05f8a2998] user: drh branch: nx-devkit, size: 40737)
11:45
[7e8d8303b8] part of check-in [2d50f78188] Fix some problems with dropped error codes in multiplexOpen(). (check-in: [2d50f78188] user: dan branch: nx-devkit, size: 40260)
02:22
[cee2474efe] part of check-in [a822a80d3c] In the multiplexor, do not try to delete overflow files that do not exist. And assume all but the last overflow file is the size of the chunk size. (check-in: [a822a80d3c] user: drh branch: nx-devkit, size: 40193)
2011-12-14
17:53
[80677a47c7] part of check-in [cdbfb553af] Add a file-control that will discover the name of the bottom-level VFS and all the shims in between. (check-in: [cdbfb553af] user: drh branch: vfsname-filectrl, size: 40119)
01:38
[a61af1bd64] part of check-in [08bbbd8e38] Improvements to comments. No code changes. (check-in: [08bbbd8e38] user: drh branch: nx-devkit, size: 39979)
2011-12-13
19:03
[10f881e450] part of check-in [43a1264088] Add a hard limit to the number of chunks a multiplexed database may consist of if ENABLE_8_3_NAMES is defined. (check-in: [43a1264088] user: dan branch: nx-devkit, size: 39934)
18:22
[c8cfaa7fa1] part of check-in [8e65b91325] Change the SQLITE_EXTRA_INIT routine to take a single argument which is a pointer to a string. Call SQLITE_EXTRA_INIT with a NULL argument. Fixes to multiplexor to treat the VFS properly in corner cases. Fix the initialization of multiplex3.test. (check-in: [8e65b91325] user: drh branch: nx-devkit, size: 39519)
12:10
[10aaf8b7eb] part of check-in [199f52bced] This branch merged with nx-devkit and from there into trunk. Was: In the multiplexor, instead of generating a unique file-name when SQLite opens a temp file, allow the underlying VFS to generate a different temp file for each chunk. Given the changes to the xFileSize method, it is no longer necessary for the different chunks of a temp file to use the same base name. (check-in: [199f52bced] user: dan branch: experimental, size: 39475)
11:15
[ce0148e7fe] part of check-in [255d21499b] Change the way IO errors are handled in the xFileSize method of the multiplexor VFS. Add test file multiplex3.test. (check-in: [255d21499b] user: dan branch: experimental, size: 41804)
02:41
[56f837b9ca] part of check-in [dc8118cd89] When the multiplexor FileSize procedure fails to open the file, assume that the file is zero bytes in size. (check-in: [dc8118cd89] user: drh branch: nx-devkit, size: 41992)
2011-12-12
18:55
[7dcf429b53] part of check-in [ee1e012256] Change the multiplexor VFS so that xTruncate is a no-op on database files. (check-in: [ee1e012256] user: dan branch: trunk, size: 41894)
18:21
[affbe08d3c] part of check-in [713071c493] Fix for the xFileSize method of test_multiplex.c when used on a file opened with the DELETEONCLOSE flag set. (check-in: [713071c493] user: dan branch: trunk, size: 41847)
2011-12-11
22:44
[1bd9d08087] part of check-in [05bf8a0b17] In the multiplexor shim, when using 8+3 filenames, begin numbering journal overflow files with 101 instead of 001 to avoid name collisions with the main database file. (check-in: [05bf8a0b17] user: drh branch: trunk, size: 41682)
2011-11-18
13:10
[185378cade] part of check-in [0b7edc4475] Change the multiplexor to use a 3-digit suffix. (check-in: [0b7edc4475] user: drh branch: trunk, size: 41334)
2011-11-16
17:32
[6a65dd5006] part of check-in [06e0cdaf91] Change the multiplexor suffix from 2 to 3 digits. (check-in: [06e0cdaf91] user: drh branch: 3-digit-multiplex-suffix, size: 41224)
2011-08-15
19:44
[3fc368022c] part of check-in [0f42ef697e] Updated comments on the multiplexor extension. No changes to code. (check-in: [0f42ef697e] user: drh branch: trunk, size: 41774)
2011-07-23
13:11
[731fb740a9] part of check-in [6fb7cfc2ef] In the multiplexor, close auxiliary files before deleting them when doing a truncate. (check-in: [6fb7cfc2ef] user: drh branch: trunk, size: 41442)
2011-07-21
20:59
[991a60733d] part of check-in [83191ad6f3] All multiplexor chunk sizes up to 4GiB. Disable the multiplexor if the chunk size is set to 0. (check-in: [83191ad6f3] user: drh branch: trunk, size: 41442)
2011-07-20
17:59
[7f5b2ec63f] part of check-in [427a9a5120] For an existing multiplexed database, try to set the chunk size automatically based on the sizes of the preexisting pieces. (check-in: [427a9a5120] user: drh branch: trunk, size: 41294)
16:35
[282f315fd0] part of check-in [1ffa542bf9] When the multiplexor opens an auxiliary file, it now persists the name of that file until it is closed, as it should. Remove the limit on the number of auxiliary files used by the multiplexor. (check-in: [1ffa542bf9] user: drh branch: trunk, size: 40494)
2011-07-19
18:29
[d1b43de120] part of check-in [ed5f0aad6b] Formatting changes on the multiplexor code - make sure no lines exceed 80 characters. No logical changes. (check-in: [ed5f0aad6b] user: drh branch: trunk, size: 42887)
2011-07-08
17:02
[0585bb12a9] part of check-in [e305b5a931] Change the default chunk size on test_multiplex.c to 2147418112 bytes (formerly 1073741824 bytes) and make the default configurable at compile-time using SQLITE_MULTIPLEX_CHUNK_SIZE and at run-time using the "chunksize" URI query parameter. Add support fo test_multiplex to the shell. (check-in: [e305b5a931] user: drh branch: trunk, size: 42464)
2011-05-23
18:37
[a7457a1ac4] part of check-in [a65d043a2a] Minor cleanups to the header comments on various test_*.c file, to make the suitable for programmer-level documentation. (check-in: [a65d043a2a] user: drh branch: trunk, size: 42108)
2011-05-18
03:02
[8e67617b80] part of check-in [186d7ff1d9] Make sure the multiplexor shim uses a full pathname for temp file that it creates. (check-in: [186d7ff1d9] user: drh branch: trunk, size: 40936)
02:22
[c71f0a0cdf] part of check-in [a074986045] Update multiplex VFS to handle empty filenames which can occur for during vacuuming (temp file names.) (check-in: [a074986045] user: shaneh branch: trunk, size: 40732)
2011-04-01
14:22
[fdabd793ee] part of check-in [718f1ad7df] Removed dependency on sqliteInt.h so that multiplex VFS shim can be compiled as loadable module. (check-in: [718f1ad7df] user: shaneh branch: multiplex-enhancements, size: 38388)
2011-03-31
15:11
[c0d9450b63] part of check-in [b3c6d9aa9e] Enable/disable support. (check-in: [b3c6d9aa9e] user: shaneh branch: multiplex-enhancements, size: 37496)
13:14
[07dff88008] part of check-in [fee9734c19] Add tests and fixes for SELECT multiplex_control(op, val); (check-in: [fee9734c19] user: shaneh branch: multiplex-enhancements, size: 36217)
05:31
[6edf785c1c] part of check-in [36e364a3fe] Additional test cases; Round chunk size up to a multiple of max page size; (check-in: [36e364a3fe] user: shaneh branch: multiplex-enhancements, size: 36091)
2011-03-30
21:03
[aa5da1f284] part of check-in [c41ff2358e] Updates to multiplex.test script; misc. bug fixes; (check-in: [c41ff2358e] user: shaneh branch: multiplex-enhancements, size: 35286)
2011-03-29
05:06
[234f4b371d] part of check-in [bc02d0c193] In-progress changes - do not use; Removed prefix support; Added file control interface to enable/disable and adjust chunk size; added app-def function for same; (check-in: [bc02d0c193] user: shaneh branch: multiplex-enhancements, size: 35237)
2011-03-15
04:45
[cf01141845] part of check-in [cfa4a2f7ea] Allow multiplex file names to be preceeded by prefix of the form ":multiplex:chunksize:maxchunks:" Still work to be done, though it compiles and prefixes are ignored. (check-in: [cfa4a2f7ea] user: shaneh branch: multiplex-enhancements, size: 34776)
2011-02-09
19:55
[655cb3b663] part of check-in [7cc515edc9] Make sure code *compiles* with each OMIT and ENABLE option. Mostly changes to test modules. (check-in: [7cc515edc9] user: shaneh branch: trunk, size: 32700)
2010-12-01
23:42
[5990431a85] part of check-in [6818c6e42f] Changed multiplex shim's xFilesize to return an error on mismatched chunk size. Added test of same. (check-in: [6818c6e42f] user: shaneh branch: trunk, size: 32245)
2010-11-12
15:49
[a324e1fbd5] part of check-in [1244ef9f7e] Change the test_multiplex.c code to use wrapper functions for all sqlite3_vfs methods (instead of copying function pointers from the underlying vfs into the multiplex vfs). This is required to work with test_osinst.c. (check-in: [1244ef9f7e] user: dan branch: trunk, size: 32203)
2010-11-08
19:16
[5c2b53d620] part of check-in [07da0a0bef] Changes to the multiplex VFS to optionally (compiler define) allow the "chunk extension" to overwrite the right-most chars of the filename instead of simply being appended. (check-in: [07da0a0bef] user: shaneh branch: trunk, size: 30122)
2010-11-05
20:50
[479a51f7ee] part of check-in [65fa1164f0] Fix to xTruncate and more journal mode tests for the multiplex VFS. (check-in: [65fa1164f0] user: shaneh branch: trunk, size: 27966)
17:51
[83eb652fb4] part of check-in [f2004b44bf] More tests and added support for xDelete in multiplex VFS. (check-in: [f2004b44bf] user: shaneh branch: trunk, size: 27826)
03:58
[197ff9d3b5] part of check-in [1ab9a59237] Additional error checking and tests for multiplex VFS. (check-in: [1ab9a59237] user: shaneh branch: trunk, size: 26572)
03:43
[8103a0ae1b] part of check-in [8ed944ba74] Additional tests and commenting for the multiplex VFS. (check-in: [8ed944ba74] user: shaneh branch: trunk, size: 26651)
2010-11-04
20:50
Added: [be9c1445dc] part of check-in [dd4dc8a426] First attempt at a sharding VFS to split large DBs. (check-in: [dd4dc8a426] user: shaneh branch: experimental, size: 27184)