aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
...
* Add the SQLITE_FCNTL_SIZE_HINT operator to sqlite3_file_control() and use itdrh2010-05-19
| | | | | | to give the VFS hints about the ultimate size of a database file when the file is growing. FossilOrigin-Name: 2b7e3b4a30d6a7c4a8a4b8e7dd2ed728b565c96d
* Mark the shared-memory in the WAL implementation as volatile.drh2010-05-18
| | | FossilOrigin-Name: 0a6787908e989bd5e6af25acbdc59ebc8fa61d6d
* Fix a typo that (by bad luck) was not a syntax error but which caused some drh2010-05-14
| | | | | important lines of code to be skipped when SQLITE_DEBUG was not used. FossilOrigin-Name: 9ef99d97d25aae81df971d40ad10c544b8f30053
* Simplifications to the SHM implementation in os_unix.c, taking advantagedrh2010-05-14
| | | | | of the removal of the LinuxThreads mess. FossilOrigin-Name: d1debe5def82a6bc72f11b8787176ac60259630f
* Simplify os_unix.c by removing support for LinuxThreads. Linux systems mustdrh2010-05-14
| | | | | either use NPTL or else not share database connections across threads. FossilOrigin-Name: e294b696ba91512b1ca5547774c51ea07b4cb5bc
* Change the OSTRACEn() macro to OSTRACE(()). Also rename some internal fieldsdrh2010-05-14
| | | | | and variables in os_unix.c to be more meaningful and searchable. FossilOrigin-Name: 5fe529f239cddbf4b7ea57abb02d95cc0d94f5f5
* Change the xShmSize() implementation in os_unix.c so that it will onlydrh2010-05-13
| | | | | increase and never decrease the size of a shared-memory segment. FossilOrigin-Name: 149d2ae4a6fe2f86822f286d2a7092c51bec7ebb
* Refactoring the VFS-SHM methods used by WAL. This version compiles anddrh2010-05-12
| | | | | runs non-WAL test cases but crashes and burns on wal.test. FossilOrigin-Name: 2b00152c1ac0b3735aa6cfab61259ff04d81c701
* Have os_unix.c use the suffix "-wal-index" for wal-index files instead of ↵dan2010-05-11
| | | | | "-wal-inde". FossilOrigin-Name: 885e854e7cdc79ecc9d5772d563ddc0f61753ab6
* Fix an off-by-one error while constructing the name of the mmap file fordrh2010-05-10
| | | | | the wal-index under os_unix.c. FossilOrigin-Name: 6e3735f72cb7d2f4d16c8f9bc59ff159c75243e5
* Fix an uninitialized variable in OSX proxy locking.drh2010-05-10
| | | FossilOrigin-Name: 96d6eaf4d2be453191b36875811d9556ad0763ed
* Change the xShmOpen() method of the VFS to take the database file name asdrh2010-05-07
| | | | | | its argument, not the WAL file name. Also fix some unrelated compiler warnings. FossilOrigin-Name: a65c2939267ef6acec4e355a207f98f217e263d6
* Instead of transitioning to RECOVER state from CHECKPOINT when a recovery is ↵dan2010-05-06
| | | | | required, perform the recovery while holding the CHECKPOINT lock. FossilOrigin-Name: bb0b6021e721c2e4f1533ab18381604c6b7b31d5
* Further simplifications to the SHM locking logic. Remove the SQLITE_SHM_QUERYdrh2010-05-05
| | | | | option. Unify the WRITE to READ and RECOVER to READ transitions. FossilOrigin-Name: e9bfa6e4ce7d1edc6be8b9173ac3b6bfd180632a
* Simplifications to the SHM locking implementation in os_unix.c.drh2010-05-05
| | | FossilOrigin-Name: 9de05bfb09e29bafdf5782263330fe8eefcfaba3
* Fix a bug in the xCurrentTime() method of the os_unix.c VFS.drh2010-05-03
| | | FossilOrigin-Name: 551df11a5613e3edc6c5de44f0ac6abc2d0e6cdf
* Fix a couple of errors in WAL code that can occur in an OOM situation.dan2010-05-03
| | | FossilOrigin-Name: 9d3f3736be42ef8ab48b099d4712e08dfca97873
* Change the VFS definition so that all methods take a VFS object pointer asdrh2010-05-03
| | | | | their first parameter. FossilOrigin-Name: 43b5b07f0d996d7ef7426346b1792e9ca898f487
* Use VFS method xCurrentTimeInt64 instead of xCurrentTime when it is available.drh2010-05-03
| | | | | Provide an implementation of xCurrentTimeInt64 for os_unix.c. FossilOrigin-Name: ab77b3ae6da3370d8bc3b2c9c0edc723b69f5a95
* Change the SHM interface so that it does not take the name of the shareddrh2010-05-01
| | | | | | | object but rather the name of the WAL file and derives its own name from that. Remove the xShmDelete method from the VFS and replace it with a delete flag on xShmClose. FossilOrigin-Name: 94dea5f9c11a68564220cec76ac3fae2ba90e907
* Remove the xShmPush and xShmPull methods from the VFS.drh2010-05-01
| | | FossilOrigin-Name: 69e07fdbde5054593de948b76dfac157cf5d4058
* Define an invariant to guarantee deadlock-free operation of SHM in os_unix.cdrh2010-05-01
| | | | | and check that invariant with assert() statements. FossilOrigin-Name: 6af2dca75b8139134ea394c1d71aefc6523f02e9
* Rework mutexes on the SHM implemention for os_unix to avoid a deadlock duringdrh2010-05-01
| | | | | WAL recovery. FossilOrigin-Name: 1a0f69bef2c489e81a3d4b910b426972e9ed4054
* Support compile-time option SQLITE_OMIT_WAL, for building without WAL support.dan2010-05-01
| | | FossilOrigin-Name: 9b230c43dfa112e3e1589f9775926807bd36b36e
* Change the SHM VFS logic in os_unix.c so that it does not hold an exclusivedrh2010-04-30
| | | | | | lock n the mapped memory when also holding a CHECKPOINT lock. This improves concurrency between readers and checkpointers. FossilOrigin-Name: 8660cda6f8ef43bd276897ef3b5fc2376b5684dc
* In the debugging output for SHM-LOCK in os_unix.c, use symbolic namesdrh2010-04-30
| | | | | for the lock states rather than raw numbers. FossilOrigin-Name: 2afc33de2b2012d034fb0d2057a5a45e304516ca
* Fix a problem in the previous commit. Both unixShm.lockState and ↵dan2010-04-30
| | | | | unixShm.readLock should be set to READ when downgrading from a WRITE to a READ lock FossilOrigin-Name: 90119fecbce06c8db82194dfd9d5045be29b1cda
* Fix a bug whereby upgrading from a READ_FULL to a WRITE lock, and then back ↵dan2010-04-30
| | | | | to a read lock was dropping all WAL locks. FossilOrigin-Name: 55f5af5e174df7a28deeb36faa51138926669897
* Fix a couple uninitialized variables in the xShmLock method of the unix VFS.drh2010-04-30
| | | | | Improved debugging logic for xShmLock. FossilOrigin-Name: 69567c5fca9e30b7660e6f56350be929c3890d7e
* Separate the concepts of underlying storage size and mapped size in thedrh2010-04-30
| | | | | VFS shared-memory implementation. FossilOrigin-Name: 4cbe49f13fed288f94ff305bcfd99df907bf7baf
* Add a missing walIndexUnmap() call to the checkpoint code. Change a couple ↵dan2010-04-30
| | | | | of SQLITE_CANTOPEN constants to SQLITE_CANTOPEN_BKPT. FossilOrigin-Name: 1f9e8c5c27ae2c68bc01d8e2bb2c662be7b3f161
* Add missing mutexes to unixShmClose().dan2010-04-30
| | | FossilOrigin-Name: a4741cb54dd5e753d48fd05ac9dbe27ee4aa1ec0
* Fix a couple of assert() statements in os_unix.c and wal.c. Combine ↵dan2010-04-30
| | | | | sqlite3WalIsDirty() with sqlite3WalUndo(). FossilOrigin-Name: a8f958be804ee05c4137b3cd110db344713af5f2
* Add a missing walIndexUnmap() to sqlite3WalSnapshotOpen().dan2010-04-30
| | | FossilOrigin-Name: 72b95fde15dae56390dc8d4168fb2757447e289e
* The first 6 WAL tests now work. It's a start.drh2010-04-30
| | | FossilOrigin-Name: a92c1851da10acf51e7f6f086b8a23bd731940b3
* Refactor wal.c to use the VFS. This check-in compiles and links and worksdrh2010-04-29
| | | | | ok as long as you leave WAL turned off, but WAL does not work. FossilOrigin-Name: 62db5fa3b61be885b2d94e9b9ce3877b2c588350
* Untested implementation of the shared-memory dead-man-switch.drh2010-04-29
| | | FossilOrigin-Name: 706611283ea2575c2942543391026b36061cfc1c
* Progress towards a VFS that will support WAL. Locking code is in placedrh2010-04-29
| | | | | but is untested. Still no support for the DMS. FossilOrigin-Name: 1bde41cf081570ad257f927b641e752dff4ed014
* Changes to the interface design for the xShmLock method of the VFS.drh2010-04-28
| | | FossilOrigin-Name: 348409de26eafe12f5cb1236e8e167a4183d4051
* Add the xShmRelease() method to the VFS. The os_unix.c implementation ofdrh2010-04-27
| | | | | the shared memory logic is still non-functional. FossilOrigin-Name: ed715b47c5f7657fbf901805981867898054b14d
* Begin moving WAL-specific I/O into the VFS. This checkin contains VFSdrh2010-04-26
| | | | | | infrastructure but it is untested and is not yet hooked up to the WAL. The version number is bumped to 3.7.0 because of the VFS extension. FossilOrigin-Name: f5e615c28c7035a7e6d896790b51cf9bc7371d5f
* Import experimental write-ahead-logging code.dan2010-04-12
| | | FossilOrigin-Name: 409d61baeb0a19d1700c973f16c8acef7b8506cd
* Adjustments to #ifdefs so that the #include of <sys/mount.h> is not includeddrh2010-03-05
| | | | | twice, because that confuses the amalgamation builder. FossilOrigin-Name: 27413fc8dd52b754b4be9344a66bb9e0d752d48e
* Adjust some #ifdefs so that the build works on Mac both with and withoutdrh2010-03-05
| | | | | SQLITE_ENABLE_LOCKING_STYLE. FossilOrigin-Name: 0cc981f1ccc2c99b87eb968590ad18b2d3ebf37b
* Suppress harmless compiler warnings.drh2010-03-04
| | | FossilOrigin-Name: fc2c63ac78ba7d48fe3232f88093e980ea34eaa9
* Avoid incorrect compiler warnings by doing a couple of needlessdrh2010-02-26
| | | | | variable initializations. FossilOrigin-Name: 8f29490da62df07ea922b03cab52b6edd2669edb
* Continuing improvements to error reporting and the sqlite3_log() routine.drh2010-02-23
| | | FossilOrigin-Name: edea3bb740ddd096a46e00678b59d465bb1e2903
* Remove the obsolete sqlite3SafetyOn() mechanism. Add additional loggingdrh2010-02-23
| | | | | output for CORRUPT, and CANTOPEN errors. FossilOrigin-Name: 7c4cca6d1a23a6d1591b62f58c3716a944969947
* Change a C++ style comment in os_unix.c to use normal C style commenting.dan2010-02-16
| | | FossilOrigin-Name: 7a1933097f2a95bd495c1621fca99e8952a1b25a
* Make sure file descriptors are closed before unlinking in VxWorks.drh2010-02-05
| | | FossilOrigin-Name: f64b81f13de4875343c752e7183bf61032dc9594