aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
...
* Changes so that the xShmOpen VFS method is no longer required. Its job can ↵dan2010-07-13
| | | | | be done by the first call to xShmMap. Rename xShmClose to xShmUnmap. FossilOrigin-Name: f4780bde62c6c19146d2723c101540b8db898d38
* Remove the unused xRename() method from the sqlite3_vfs object.drh2010-07-03
| | | | | Add better documentation on the xCurrentTimeInt64() method. FossilOrigin-Name: 51ec0e5432dd6849b83a3d969a018482eb3bb083
* Fix compiler warnings in the proxy locking code.drh2010-07-02
| | | FossilOrigin-Name: 26c7689cfedf03e65bcd51df68d128101ed2c1ec
* Suppress various compiler warnings.drh2010-06-26
| | | FossilOrigin-Name: e82d008eaffb5522080cad6c69c1b194b78eadbd
* Adjust the shared-memory locking range to account for the new version numberdrh2010-06-23
| | | | | values in the wal-index header. FossilOrigin-Name: a6dc0df304876b51cef5402b0e21330f10aabccf
* Merge latest trunk change.dan2010-06-21
|\ | | | | FossilOrigin-Name: f6d26e07b70965e332b1589804ca938593a5f432
| * Fix an uninitialized variable in os_unix.c.drh2010-06-19
| | | | | | FossilOrigin-Name: 822a0283c6bc1c75001f3d1c528a4ff89c6b039c
| * Change the unix VFS to always allocate shared-memory using a file in thedrh2010-06-19
| | | | | | | | | | | | | | same directory as the database. Otherwise, a chroot might cause different processes to use different shared memory files resulting in database corruption. FossilOrigin-Name: 2241788bc85fbc48e9cfecb95fe0a858338e37cb
* | Change the implementation of the unix implementation of xAccess() so that it ↵dan2010-06-18
|/ | | | | returns 0 (does not exist) to an SQLITE_ACCESS_EXISTS query on a file that exists but is zero bytes in size. FossilOrigin-Name: 077b0e5bcd849130c8df373fc2134c4b44351882
* Fix a memory leak that can occur in os_unix.c if an IO error occurs within ↵dan2010-06-16
| | | | | the xUnlock method. FossilOrigin-Name: 6c5c04eea1f0e8d61883ee8675c249fbf895dc01
* Move the xShmMap method to in between xShmLock and xShmBarrier, since it seemsdrh2010-06-14
| | | | | to fit in there logically. FossilOrigin-Name: 58dfd83d8b7905391e2a06bb918ffa209c6de6b5
* Add the new xShmMap (formerly xShmPage) to os_win.c.dan2010-06-14
| | | FossilOrigin-Name: 13e7a8242206bca4b5bf356ef074e66474d39609
* Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name ↵dan2010-06-14
| | | | | of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations. FossilOrigin-Name: fc0cabc15c97dde6a852b4f07df6d30f1d2c04bc
* Experimental change to the xShmXXX parts of the VFS interface.dan2010-06-11
| | | FossilOrigin-Name: ca68472db01c14a899892007d1cbaff5e86ae193
* In os_unix.c, call munmap() to unmap a shared-memory region prior to closing ↵dan2010-06-07
| | | | | the associated file descriptor. FossilOrigin-Name: 95cc976f1520bdaedd8f93b0e9fbef94e4e2c8cc
* Make sure the directory used by os_unix.c for shared-memory files is alwaysdrh2010-06-02
| | | | | | the same, regardless of individual client permissions and environment variable settings. FossilOrigin-Name: f97bd520f06a16c61ccdd9ebeda7e138896b9ac2
* Changes to make WAL more robust against SHM locking failures and OOM errors.drh2010-06-02
| | | FossilOrigin-Name: ebf4041383c3cdddb5861960359abd209d4a1028
* The shared-memory used by WAL on linux now really is shared memory in /dev/shm.drh2010-06-01
| | | | | | On other unix flavors, the file is in a temporary directory rather than in the same directory as the database. FossilOrigin-Name: fc18c4aadb908c3b6f9b6481a2efca6a0daadc64
* Do not hold the shared-memory mutex in os_unix.c if returning NULL.dan2010-06-01
| | | FossilOrigin-Name: 9622dd468c8914262e9d8bd8dbca9e22ec6ee75c
* Fix os_unix.c so that it will compile and build on a Mac.drh2010-06-01
| | | FossilOrigin-Name: bc707c83e5f9849d9d201d695d0d071ca9ed93cb
* Fix issues with locking_mode=EXCLUSIVE in WAL.drh2010-05-31
| | | FossilOrigin-Name: 8deba0cebd135a18da68530fab9e7d19dc21ddcb
* Fix an inconsistent #ifdef in wal.c. Fix os_unix.c so that it does not allowdrh2010-05-31
| | | | | moving an SHM lock directly exclusive to shared without going through unlocked. FossilOrigin-Name: 552658da2845c2323167b6c7db6e5c00090f280c
* Get the new xShmLock interface design working on os_win.c.drh2010-05-31
| | | FossilOrigin-Name: 149a7082e266edf0dc25c23823a9e240f5285215
* Remove the tests that enable tracing based on the existance of the "vdbe_*"drh2010-05-31
| | | | | files when in SQLITE_DEBUG mode. FossilOrigin-Name: cdbb4e7ca7ec27e7e80dd66529d9d565f547887a
* WAL runs but quickly deadlocks.drh2010-05-31
| | | FossilOrigin-Name: ace58acbf1fad13d2be96cafebc3a22875098d03
* Initial code for incremental checkpoint in WAL mode. This check-in compilesdrh2010-05-30
| | | | | | | on unix and runs as long as you do not engage WAL mode. WAL mode crashes and burns. Consider this check-in a baseline implementation for getting the new capability up and running. FossilOrigin-Name: ef3ba7a17ff90674d702e5694b9e792851ab6998
* Change the semantics of xShmGet() such that it will never increase the sizedrh2010-05-26
| | | | | | of shared memory. xShmSize() must be used to grow the size of shared memory. A shared memory segment size cannot be shrunk (except by dropping it). FossilOrigin-Name: 72de00731245277b2209103ec0a76e3d4f56530e
* Update header comments in wal.c to correctly describe the WAL file format.drh2010-05-25
| | | | | | Update the locking region offsets in os_unix.c and os_win.c and add assert() statement to verify that the locking region offsets are correct. FossilOrigin-Name: 40030c0739f821ea8ee188c28c579507f10448bc
* Comment out the SQLITE_FCNTL_SIZE_HINT from os_unix.c since it does not drh2010-05-21
| | | | | seem to provide any performance gain there. FossilOrigin-Name: 7d01309da658d6b658c1b2e53bbdc5112fb0a4d9
* Add a new xShmBarrier method to the VFS - a shared-memory fence operation.drh2010-05-20
| | | | | | Implement the same in both unix and win32. Use it to make the WAL subsystem more robust. FossilOrigin-Name: 1bd011c9fed5ef29fb616b4d0a52df3b82221b1f
* 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