summaryrefslogtreecommitdiff
path: root/c_src
Commit message (Collapse)AuthorAgeFilesLines
* Report errors as exceptions when called from python.Magnus Ahltorp2017-06-213-0/+13
|
* Implement reading over the file/writebuffer boundaryMagnus Ahltorp2017-03-161-6/+17
|
* Update copyright headers.Linus Nordberg2017-01-125-3/+11
|
* Only require complete permdb data file in r/w modeMagnus Ahltorp2016-12-031-2/+4
|
* Recover from extra data at end of index fileMagnus Ahltorp2016-11-303-1/+48
|
* Added RO mode to permdbMagnus Ahltorp2016-11-267-15/+135
|
* filebuffer: continue reading after short readMagnus Ahltorp2016-11-222-21/+60
| | | | permdb: only read small chunks when verifying commit
* Remove printf from permdbpyMagnus Ahltorp2016-11-221-2/+0
|
* Make calc_padding handle 64 bit offsets correctlyMagnus Ahltorp2016-11-183-7/+7
|
* Change commit length field to 64-bit in permdb data fileMagnus Ahltorp2016-11-161-10/+10
|
* Better error handling when allocating and freeing permdb objectMagnus Ahltorp2016-08-193-10/+30
|
* Include <sys/file.h> for flock(2).Linus Nordberg2016-07-111-0/+1
|
* Lock permdb database files with flockMagnus Ahltorp2016-07-113-6/+29
|
* Print correct function name in debug printouts.Linus Nordberg2016-05-131-2/+2
|
* Whitespace.Linus Nordberg2016-05-131-4/+5
|
* Make put_node_in_dirtynodes take a binary key and levelMagnus Ahltorp2016-05-131-21/+22
|
* Added 'keyexists' command to permdbMagnus Ahltorp2016-05-131-0/+37
|
* Document reason for HTONLL() and NTOHLL().permdb-index-endian-2Linus Nordberg2016-05-131-0/+2
|
* Clarify incrementation of data pointer.Linus Nordberg2016-05-131-2/+2
|
* Change endian of permdb index file to big-endianMagnus Ahltorp2016-05-135-47/+54
|
* Cast node_offset variables to make compilers happy with %llu format.permdb-uthash-rebasedLinus Nordberg2016-05-131-10/+18
| | | | | One would think that typedef uint64_t node_offset would make this obvious.
* Fix some copyright year(s).Linus Nordberg2016-05-101-1/+1
|
* Follow renaming of ENTRIESPERNODE in 2cce013.Linus Nordberg2016-05-101-1/+1
|
* Reverting "Don't follow the NULL pointer."Linus Nordberg2016-05-101-4/+0
| | | | | | | There are several other instances of accessing NULL, both in permdb.c and filebuffer.c. Fixing one isn't very helpful. This reverts commit 2a63ac24a6c151b47e64a023965eab57ae9b1493.
* Remove spurious call to get_node_from_dirtynodes().Linus Nordberg2016-05-101-1/+0
| | | | | Arguably useful for debug printouts. Let's add debug printouts explicitly if needed.
* Add some function documentation and clarifying comments.Linus Nordberg2016-05-101-6/+23
|
* Rename overwriteentry() -> replaceentry().Linus Nordberg2016-05-101-6/+6
| | | | | The former name is close enough to writeentry() to think "write to file", which is not what the function does.
* Improve readability, remove an assert, add an error printout.Linus Nordberg2016-05-101-19/+12
|
* Write the ENTRIESPERNODE constant in uppercase.Linus Nordberg2016-05-102-4/+4
| | | | Let's lowercase it once q is parametrized.
* Don't follow the NULL pointer.Linus Nordberg2016-05-101-0/+4
|
* Doc change.Linus Nordberg2016-05-091-2/+2
| | | | Uppercasing formal parameters, for consistency.
* Whitespace.Linus Nordberg2016-05-091-7/+0
| | | | Remove spurious whitespace.
* Document keypart().Linus Nordberg2016-05-091-0/+4
|
* Doc change -- dirtynodes is a list, not a tree.Linus Nordberg2016-05-091-1/+1
|
* Move code for increased readability.Linus Nordberg2016-05-091-2/+2
|
* Whitespace.Linus Nordberg2016-05-091-16/+16
| | | | More consistent indentation.
* Document keybits() and make it slightly easier to read.Linus Nordberg2016-05-091-3/+9
| | | | Also, remove unused KEYPART_MAX.
* Refactor getpath/getlast even more.Linus Nordberg2016-05-041-28/+17
|
* Refactor getpath(), getpathlastnode() and rename getpathlastnode->getlastnode.Linus Nordberg2016-05-041-34/+32
|
* Add documentation for readnode().Linus Nordberg2016-05-041-0/+9
|
* dprintf "failure" if the unpacknode() node fails in readnode().Linus Nordberg2016-04-291-1/+2
|
* Consolidate two identical error message format strings.Linus Nordberg2016-04-291-8/+5
|
* Print error message when non-cookie data is found in rebuild_index_file().Linus Nordberg2016-04-291-3/+2
|
* Add addvalue() function documentation.Linus Nordberg2016-04-291-0/+17
|
* Handle addvalue() errors separately from duplicate keys.Linus Nordberg2016-04-291-1/+7
|
* Add error printout for the duplicate key case in rebuild_index_file().Linus Nordberg2016-04-291-12/+12
| | | | | | | Also moving the offset calculation to after the printout because the printout needs it before increasing it. Also turn two outcommented fprint's into dprintf's.
* Turn a bunch of outcommented fprintf's into dprintf's.Linus Nordberg2016-04-292-13/+15
| | | | Also, rename dprintf 'level' to 'category' and add DEBUG_REBUILD.
* Whitespace and c-file-style "BSD".Linus Nordberg2016-04-297-11/+15
|
* Don't fail on missing temp files.Linus Nordberg2016-04-271-1/+1
|
* Break long lines and adjust other whitespace.Linus Nordberg2016-04-276-126/+317
|