/ All files named "src/test_multiplex.c"
Login

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

History for src/test_multiplex.c

2020-07-29
16:18
[ed2e5545] part of check-in [a80ae2c9] 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: [a80ae2c9] user: drh branch: typos, size: 44726)
2020-07-24
09:17
[2ccf3555] part of check-in [270ac1a0] Fix other potentiall pointer aliasing problems associated with subclassing of the sqlite3_file object for various VFS implementations. (check-in: [270ac1a0] user: drh branch: trunk, size: 44725)
2020-06-19
11:34
[d0ee44ec] part of check-in [7bb08b1b] Refactoring various names. No changes in the resulting machine code. (check-in: [7bb08b1b] user: drh branch: trunk, size: 44753)
2020-02-18
19:49
[46e27839] part of check-in [9469f36a] Add the new sqlite3_create_filename() and sqlite3_free_filename() interfaces for use by Shims. Use these interfaces inside the multiplexor. (check-in: [9469f36a] user: drh branch: trunk, size: 44754)
2020-01-28
16:55
[e5fac104] part of check-in [91214891] Fix a 4 byte OOB read in test_multiplex.c. (check-in: [91214891] user: dan branch: trunk, size: 44624)
2016-10-27
14:51
[e054459f] part of check-in [6374978e] Remove the mutex from test_multiplex.c. (check-in: [6374978e] user: dan branch: trunk, size: 44603)
2016-08-01
14:35
[7c5b218d] part of check-in [b6ea2f21] Avoid making unnecessary changes to the signatures of the sqlite3_auto_extension() and sqlite3_cancel_auto_extension() interfaces. (check-in: [b6ea2f21] user: drh branch: trunk, size: 48412)
2016-07-28
22:23
[371d3874] part of check-in [3ea567c4] 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: [3ea567c4] user: mistachkin branch: callbackConv, size: 48397)
17:11
[af2792ec] part of check-in [f2f1323c] 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: [f2f1323c] user: mistachkin branch: callbackConv, size: 48404)
14:37
[a0bcea72] part of check-in [e8be3dfe] Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention. (check-in: [e8be3dfe] user: mistachkin branch: callbackConv, size: 48289)
2016-04-12
20:05
[eafc567e] part of check-in [ab69527c] More harmless compiler warning fixes. (check-in: [ab69527c] user: mistachkin branch: warnings, size: 48214)
2016-03-28
11:01
[6a9de820] part of check-in [f6a88ccc] Fix the multiplexor so that it does not assume that the xGetLastError method is non-NULL in the child VFS. (check-in: [f6a88ccc] user: drh branch: trunk, size: 48184)
2015-12-03
11:51
[6a088d8d] part of check-in [9d2c62b0] Improve concurrency in test_multiplex.c. Add a switch to "threadtest3" allowing it to run using the multiplexor VFS. (check-in: [9d2c62b0] user: dan branch: trunk, size: 48111)
2015-04-29
16:50
[9fefd23f] part of check-in [48f553b0] Use sqlite3_malloc64() in place of sqlite3_malloc() internally. (check-in: [48f553b0] user: drh branch: trunk, size: 48116)
2015-04-19
21:43
[4dfb159e] part of check-in [d05becd8] Fix harmless compiler warnings seen with MSVC 2015. (check-in: [d05becd8] user: mistachkin branch: vsix2015, size: 48106)
2015-03-12
19:12
[97813565] part of check-in [b8684df3] Disable multiplexing of master-journal files in the test_multiplex.c module. (check-in: [b8684df3] user: dan branch: trunk, size: 48089)
2015-03-06
04:37
[61edf025] part of check-in [8c1e85aa] Clearification of some documentation text. Added requirements marks. (check-in: [8c1e85aa] user: drh branch: trunk, size: 47993)
2015-01-12
19:59
[72c0ad1e] part of check-in [44375a34] Silence some harmless uninitialized local variable warnings. (check-in: [44375a34] user: mistachkin branch: msvcW4, size: 47279)
19:49
[0ac6d919] part of check-in [923fd660] Harmless compiler warning fixes for 'testfixture' and the miscellaneous extensions when built with the MSVC makefile. (check-in: [923fd660] user: mistachkin branch: msvcW4, size: 47275)
2014-09-23
18:30
[caadb62c] part of check-in [d2962a5f] Add the "multiplex_truncate" PRAGMA to the multiplexor extension, for querying and setting the truncate flag on a database connection. (check-in: [d2962a5f] user: drh branch: trunk, size: 47260)
2014-07-30
15:43
[ca900574] part of check-in [c7303d01] 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: [c7303d01] user: drh branch: trunk, size: 46530)
2013-11-08
17:03
[9f304bf0] part of check-in [830629d3] Merge the Cygwin directory separator fix. Also fix a C++-ism in the multiplexor code so that it will compile on MSVC. (check-in: [830629d3] user: drh branch: trunk, size: 46221)
2013-10-21
13:15
[6f63947c] part of check-in [a00d2ed4] Drop the mutex on the multiplexor before entering the xRead VFS call. (check-in: [a00d2ed4] user: drh branch: multiplex-parallel-read, size: 46205)
2013-04-29
03:09
[5d691eeb] part of check-in [05ba5e23] More refinements to Windows OSTRACE usage. Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes. (check-in: [05ba5e23] user: mistachkin branch: winOsTrace, size: 46009)
2013-03-21
21:20
[0decc630] part of check-in [6f6e2d50] Many spelling fixes in comments. No changes to code. (check-in: [6f6e2d50] user: mistachkin branch: trunk, size: 46033)
2012-08-20
16:08
[ac0fbc17] part of check-in [7653973a] Silence harmless compiler warnings in the test code. (check-in: [7653973a] user: drh branch: trunk, size: 46033)
2012-04-19
18:04
[66dcfca0] part of check-in [3281972e] Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also in tclsqlite.c and in the FTS4 module. (check-in: [3281972e] user: drh branch: trunk, size: 46025)
2012-04-04
13:58
[3dffd0fe] part of check-in [9e1e2fe2] Fix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES. (check-in: [9e1e2fe2] user: drh branch: trunk, size: 46020)
13:51
[42967fea] part of check-in [627eff32] Fix the multiplexor logging so that it works with SQLITE_ENABLE_8_3_NAMES. (check-in: [627eff32] user: drh branch: nx-devkit, size: 44649)
13:47
[7fce6176] part of check-in [e6806f0d] In the multiplexor extension, improve the error logging when a chunk fails to open. (check-in: [e6806f0d] user: drh branch: nx-devkit, size: 44641)
13:43
[151f66e7] part of check-in [781453c6] In the multiplexor extension, improve the error logging when a chunk fails to open. (check-in: [781453c6] user: drh branch: trunk, size: 46012)
2012-03-30
14:59
[30ca0348] part of check-in [cb7a8504] Fix MSVC compiler warnings in test code. (check-in: [cb7a8504] user: drh branch: trunk, size: 45682)
2012-02-28
11:52
[0404a61d] part of check-in [c267893a] Fix a case where an error code was being overwritten in multiplexDelete(). (check-in: [c267893a] user: dan branch: trunk, size: 45672)
2012-02-27
14:28
[0b3111a8] part of check-in [e44e2677] Fix the xDelete implementation of the multiplexor VFS so that it correctly deletes overflow WAL files. (check-in: [e44e2677] user: drh branch: trunk, size: 45619)
2012-02-24
16:13
[87fcd0b6] part of check-in [d6850667] Separate multiplexor overflow pages for -wal and -journal files into separate namespaces when in 8+3 filename mode. (check-in: [d6850667] user: drh branch: trunk, size: 45226)
15:57
[31fb992a] part of check-in [a9fcb46b] Fix the multiplexor so that it works with WAL mode and 8+3 filenames. (check-in: [a9fcb46b] user: drh branch: trunk, size: 44947)
2012-01-14
00:42
[afab2c9d] part of check-in [6da0821a] 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: [6da0821a] user: drh branch: trunk, size: 44929)
2012-01-10
23:18
[67c210e2] part of check-in [cb774b26] 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: [cb774b26] user: drh branch: trunk, size: 44907)
2012-01-09
14:57
[8e8a4211] part of check-in [2f8c62c3] Cherry-pick the fix to surplus overflow files in the multiplexor, check-in [1238619756c0c] in the trunk. (check-in: [2f8c62c3] user: drh branch: nx-devkit, size: 44311)
13:41
[6415713a] part of check-in [12386197] Make sure the multiplexor does not create unnecessary overflow files. (check-in: [12386197] user: drh branch: trunk, size: 44845)
11:37
[5dc22dbe] part of check-in [12f5b8c9] 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: [12f5b8c9] user: dan branch: trunk, size: 44903)
2011-12-30
10:54
[2bf2eb36] part of check-in [26a513a8] Minor changes to fix compilation with SQLITE_OMIT_WAL and SQLITE_OMIT_WSD defined. (check-in: [26a513a8] user: dan branch: trunk, size: 44031)
2011-12-23
00:07
[7a41891c] part of check-in [83d26b9a] 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: [83d26b9a] user: drh branch: trunk, size: 43951)
2011-12-16
05:50
[6e07b94e] part of check-in [bb403388] Tweaks to the way multiplexSubOpen() works, for backwards compatibility. (check-in: [bb403388] user: drh branch: nx-devkit, size: 44369)
05:09
[ccc5f2fe] part of check-in [022bf427] Fix a potential infinite loop (inserted by the previous check-in) on the multiplexWrite() method of the multiplexor. (check-in: [022bf427] user: drh branch: nx-devkit, size: 44327)
04:57
[993f930c] part of check-in [5aefef04] 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: [5aefef04] user: drh branch: nx-devkit, size: 44330)
2011-12-15
17:00
[c87d2728] part of check-in [3af1feaa] When deleting a file with the multiplexor VFS, also delete any overflow files that exist. (check-in: [3af1feaa] user: dan branch: nx-devkit, size: 43135)
13:29
[7b65eea8] part of check-in [e05f8a29] 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: [e05f8a29] user: drh branch: nx-devkit, size: 40737)
11:45
[7e8d8303] part of check-in [2d50f781] Fix some problems with dropped error codes in multiplexOpen(). (check-in: [2d50f781] user: dan branch: nx-devkit, size: 40260)
02:22
[cee2474e] part of check-in [a822a80d] 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: [a822a80d] user: drh branch: nx-devkit, size: 40193)
2011-12-14
17:53
[80677a47] part of check-in [cdbfb553] Add a file-control that will discover the name of the bottom-level VFS and all the shims in between. (check-in: [cdbfb553] user: drh branch: vfsname-filectrl, size: 40119)
01:38
[a61af1bd] part of check-in [08bbbd8e] Improvements to comments. No code changes. (check-in: [08bbbd8e] user: drh branch: nx-devkit, size: 39979)
2011-12-13
19:03
[10f881e4] part of check-in [43a12640] Add a hard limit to the number of chunks a multiplexed database may consist of if ENABLE_8_3_NAMES is defined. (check-in: [43a12640] user: dan branch: nx-devkit, size: 39934)
18:22
[c8cfaa7f] part of check-in [8e65b913] 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: [8e65b913] user: drh branch: nx-devkit, size: 39519)
12:10
[10aaf8b7] part of check-in [199f52bc] 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: [199f52bc] user: dan branch: experimental, size: 39475)
11:15
[ce0148e7] part of check-in [255d2149] Change the way IO errors are handled in the xFileSize method of the multiplexor VFS. Add test file multiplex3.test. (check-in: [255d2149] user: dan branch: experimental, size: 41804)
02:41
[56f837b9] part of check-in [dc8118cd] When the multiplexor FileSize procedure fails to open the file, assume that the file is zero bytes in size. (check-in: [dc8118cd] user: drh branch: nx-devkit, size: 41992)
2011-12-12
18:55
[7dcf429b] part of check-in [ee1e0122] Change the multiplexor VFS so that xTruncate is a no-op on database files. (check-in: [ee1e0122] user: dan branch: trunk, size: 41894)
18:21
[affbe08d] part of check-in [713071c4] Fix for the xFileSize method of test_multiplex.c when used on a file opened with the DELETEONCLOSE flag set. (check-in: [713071c4] user: dan branch: trunk, size: 41847)
2011-12-11
22:44
[1bd9d080] part of check-in [05bf8a0b] 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: [05bf8a0b] user: drh branch: trunk, size: 41682)
2011-11-18
13:10
[185378ca] part of check-in [0b7edc44] Change the multiplexor to use a 3-digit suffix. (check-in: [0b7edc44] user: drh branch: trunk, size: 41334)
2011-11-16
17:32
[6a65dd50] part of check-in [06e0cdaf] Change the multiplexor suffix from 2 to 3 digits. (check-in: [06e0cdaf] user: drh branch: 3-digit-multiplex-suffix, size: 41224)
2011-08-15
19:44
[3fc36802] part of check-in [0f42ef69] Updated comments on the multiplexor extension. No changes to code. (check-in: [0f42ef69] user: drh branch: trunk, size: 41774)
2011-07-23
13:11
[731fb740] part of check-in [6fb7cfc2] In the multiplexor, close auxiliary files before deleting them when doing a truncate. (check-in: [6fb7cfc2] user: drh branch: trunk, size: 41442)
2011-07-21
20:59
[991a6073] part of check-in [83191ad6] All multiplexor chunk sizes up to 4GiB. Disable the multiplexor if the chunk size is set to 0. (check-in: [83191ad6] user: drh branch: trunk, size: 41442)
2011-07-20
17:59
[7f5b2ec6] part of check-in [427a9a51] For an existing multiplexed database, try to set the chunk size automatically based on the sizes of the preexisting pieces. (check-in: [427a9a51] user: drh branch: trunk, size: 41294)
16:35
[282f315f] part of check-in [1ffa542b] 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: [1ffa542b] user: drh branch: trunk, size: 40494)
2011-07-19
18:29
[d1b43de1] part of check-in [ed5f0aad] Formatting changes on the multiplexor code - make sure no lines exceed 80 characters. No logical changes. (check-in: [ed5f0aad] user: drh branch: trunk, size: 42887)
2011-07-08
17:02
[0585bb12] part of check-in [e305b5a9] 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: [e305b5a9] user: drh branch: trunk, size: 42464)
2011-05-23
18:37
[a7457a1a] part of check-in [a65d043a] Minor cleanups to the header comments on various test_*.c file, to make the suitable for programmer-level documentation. (check-in: [a65d043a] user: drh branch: trunk, size: 42108)
2011-05-18
03:02
[8e67617b] part of check-in [186d7ff1] Make sure the multiplexor shim uses a full pathname for temp file that it creates. (check-in: [186d7ff1] user: drh branch: trunk, size: 40936)
02:22
[c71f0a0c] part of check-in [a0749860] Update multiplex VFS to handle empty filenames which can occur for during vacuuming (temp file names.) (check-in: [a0749860] user: shaneh branch: trunk, size: 40732)
2011-04-01
14:22
[fdabd793] part of check-in [718f1ad7] Removed dependency on sqliteInt.h so that multiplex VFS shim can be compiled as loadable module. (check-in: [718f1ad7] user: shaneh branch: multiplex-enhancements, size: 38388)
2011-03-31
15:11
[c0d9450b] part of check-in [b3c6d9aa] Enable/disable support. (check-in: [b3c6d9aa] user: shaneh branch: multiplex-enhancements, size: 37496)
13:14
[07dff880] part of check-in [fee9734c] Add tests and fixes for SELECT multiplex_control(op, val); (check-in: [fee9734c] user: shaneh branch: multiplex-enhancements, size: 36217)
05:31
[6edf785c] part of check-in [36e364a3] Additional test cases; Round chunk size up to a multiple of max page size; (check-in: [36e364a3] user: shaneh branch: multiplex-enhancements, size: 36091)
2011-03-30
21:03
[aa5da1f2] part of check-in [c41ff235] Updates to multiplex.test script; misc. bug fixes; (check-in: [c41ff235] user: shaneh branch: multiplex-enhancements, size: 35286)
2011-03-29
05:06
[234f4b37] part of check-in [bc02d0c1] 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: [bc02d0c1] user: shaneh branch: multiplex-enhancements, size: 35237)
2011-03-15
04:45
[cf011418] part of check-in [cfa4a2f7] 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: [cfa4a2f7] user: shaneh branch: multiplex-enhancements, size: 34776)
2011-02-09
19:55
[655cb3b6] part of check-in [7cc515ed] Make sure code *compiles* with each OMIT and ENABLE option. Mostly changes to test modules. (check-in: [7cc515ed] user: shaneh branch: trunk, size: 32700)
2010-12-01
23:42
[5990431a] part of check-in [6818c6e4] Changed multiplex shim's xFilesize to return an error on mismatched chunk size. Added test of same. (check-in: [6818c6e4] user: shaneh branch: trunk, size: 32245)
2010-11-12
15:49
[a324e1fb] part of check-in [1244ef9f] 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: [1244ef9f] user: dan branch: trunk, size: 32203)
2010-11-08
19:16
[5c2b53d6] part of check-in [07da0a0b] 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: [07da0a0b] user: shaneh branch: trunk, size: 30122)
2010-11-05
20:50
[479a51f7] part of check-in [65fa1164] Fix to xTruncate and more journal mode tests for the multiplex VFS. (check-in: [65fa1164] user: shaneh branch: trunk, size: 27966)
17:51
[83eb652f] part of check-in [f2004b44] More tests and added support for xDelete in multiplex VFS. (check-in: [f2004b44] user: shaneh branch: trunk, size: 27826)
03:58
[197ff9d3] part of check-in [1ab9a592] Additional error checking and tests for multiplex VFS. (check-in: [1ab9a592] user: shaneh branch: trunk, size: 26572)
03:43
[8103a0ae] part of check-in [8ed944ba] Additional tests and commenting for the multiplex VFS. (check-in: [8ed944ba] user: shaneh branch: trunk, size: 26651)
2010-11-04
20:50
Added: [be9c1445] part of check-in [dd4dc8a4] First attempt at a sharding VFS to split large DBs. (check-in: [dd4dc8a4] user: shaneh branch: experimental, size: 27184)