summaryrefslogtreecommitdiff
path: root/restart.c
Commit message (Collapse)AuthorAgeFilesLines
* restart: fix typo in error messageBaptiste Mille-Mathias2022-02-091-1/+1
| | | | valiate -> validate
* failing test for restart bugdormando2020-04-121-1/+1
|
* restart: fix potential double freeDavid Carlier2020-02-261-0/+2
|
* restart: missing memory error handling1.5.21dormando2020-01-211-0/+13
| | | | reported in #595
* add error handling if mmap failsDavid J. M. Karlsen2020-01-131-0/+4
| | | | Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
* Some resources / leak fixes proposalsDavid Carlier2020-01-131-2/+7
|
* restart: add error handling when a tag is not found in a metadata file.minkikim892019-10-221-0/+5
|
* Add include stdio.h to restart.cminkikim892019-09-301-0/+1
|
* restart: add missing msync at close timePiotr Balcer2019-09-191-0/+2
| | | | | | | | To make sure that the backing pages actually make it to the backing device prior to shutdown, munmap must be preceded by an msync call. Additionally, since the metadata file is used as a flag to check if the shutdown was graceful, the data needs to be sync'd prior to that file being written.
* restart: fixes for 32bit and chunked items.1.5.18dormando2019-09-171-12/+12
| | | | | | | | | | severe bug in item chunk fixup (wasn't doing it at all!) failed to check on my 32bit builders... and 32bit platforms weren't working at all. This is a bit of a kludge since I'm still working around having ptrdiff, but it seems to work. also fixes a bug with missing null byte for meta filename.
* restartable cachedormando2019-09-171-0/+411
"-e /path/to/tmpfsmnt/file" SIGUSR1 for graceful stop restart requires the same memory limit, slab sizes, and some other infrequently changed details. Most other options and features can change between restarts. Binary can be upgraded between restarts. Restart does some fixup work on start for every item in cache. Can take over a minute with more than a few hundred million items in cache. Keep in mind when a cache is down it may be missing invalidations, updates, and so on.