Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-03-19 | Lose unused temporary/pseudo rpmdbi tags | Panu Matilainen | 1 | -1/+0 | |
- we haven't had any temporary dbis since rpm 4.8.0 where Depends got axed, the rest were just nonexistent fluff anyway | |||||
2010-01-05 | Move <errno.h> include out of system.h to the places that need it | Panu Matilainen | 1 | -0/+1 | |
2010-01-05 | Unconditionally include <sys/wait.h> where needed | Panu Matilainen | 1 | -0/+1 | |
- no point conditionalizing what we cant live without | |||||
2009-12-07 | Removed obsolete "db3" entry in dbi_config_default | Florian Festi | 1 | -1/+1 | |
2009-12-07 | Remove support for sqlite based rpm database | Florian Festi | 3 | -1438/+137 | |
Also remove abstraction layer between rpmdb.h and the back end in lib/backend/ | |||||
2009-09-22 | DB_INCOMPLETE was removed in BDB 4.1 and we dont support older versions | Panu Matilainen | 1 | -5/+3 | |
2009-09-21 | Move rpmdb home creation from backends to one level higher | Panu Matilainen | 2 | -12/+2 | |
- this is a common operation for any backends, avoid duplication - only try to create it once instead of every index open, and if it doesn't exist and cant be created, error out instead of trying to continue in vain | |||||
2009-09-21 | Add an internal API for getting rpmdb home wrt chroot state, use it | Panu Matilainen | 1 | -18/+5 | |
2009-09-21 | Remove pointless per-index api version | Panu Matilainen | 1 | -3/+3 | |
2009-09-21 | DB config stuff not needed outside dbconfig.c, make them static | Panu Matilainen | 1 | -5/+4 | |
- additionally make the popt struct const since it can... | |||||
2009-09-21 | BDB is not optional at least currently, remove useless ifdefs | Panu Matilainen | 1 | -6/+0 | |
2009-09-21 | Remove useless no-op "teardown" and "usecursors" config bits | Panu Matilainen | 1 | -9/+1 | |
2009-09-21 | Remove BDB RPC "support" | Panu Matilainen | 2 | -69/+20 | |
- it's insecure, used by nobody (its been rather broken for a long time) and all, but BDB 4.8.x removed RPC support from upstream so we cant very well support in the future even if we wanted to | |||||
2009-09-21 | Remove XA "support" from the backend | Panu Matilainen | 1 | -3/+0 | |
- it's removed from BDB 4.8.x and this has hardly ever done anything anyway | |||||
2009-09-21 | Remove unused db/dbenv methods "documentary" from the source | Panu Matilainen | 1 | -38/+0 | |
2009-09-21 | Use db3Free() for on sqlite backend close too | Panu Matilainen | 1 | -6/+1 | |
2009-09-21 | Always populate dbi->dbi_file on db3New() | Panu Matilainen | 3 | -34/+15 | |
- Only the actual db->open() wants NULL for temporary databases, everywhere else we want the tag name. Handle the temporary case where it counts instead of complicating things everywhere for the one special case. | |||||
2009-09-21 | Mop up leftover root/home foobar | Panu Matilainen | 2 | -32/+7 | |
2009-09-21 | Per-dbi root and home dont make sense, always use rpmdb paths | Panu Matilainen | 3 | -18/+11 | |
2009-09-18 | Sigh.. when not using environment, absolute paths are required | Panu Matilainen | 1 | -1/+7 | |
2009-09-17 | Always open database files relative to database home | Panu Matilainen | 1 | -8/+1 | |
- This allows the db to move freely wherever (such as across chroots, RhBug:507309 and pile of related issues) .. and is even recommended by BDB documentation. Well duh. | |||||
2009-09-17 | Have BDB use our allocation routines now that we can | Panu Matilainen | 1 | -5/+2 | |
- rfree() prototype doesn't match free() but it doesn't matter in this case as it's just a convencience wrapper with no extra functionality and setting NULL is ok according to BDB docs - db->set_alloc() can't be used if environment is used, fix the condition | |||||
2009-09-17 | Eliminate unnecessary variable | Panu Matilainen | 1 | -7/+4 | |
2009-09-16 | Remove db environment on close on chrooted operations | Panu Matilainen | 1 | -1/+2 | |
- As we open the db from outside the chroot, the environment ends up containing paths that are not valid once we enter the chroot causing dumb issues like RhBug:513699 and RhBug:507309. - We'd be better off removing the environment always after access but limiting to chroots for now as the rpmdb open/close path is full of races when environment is not present. Chroots are somewhat special environemnts anyway and typically not concurrently accessed so it's less of an issue there. - While this still has all sorts of issues, it at least leaves the rpmdb in chroot in a functional state after initial install. | |||||
2009-09-16 | There's a function to test string equivalence... | Panu Matilainen | 2 | -5/+5 | |
2009-09-16 | Throw out useless db statistics structs | Panu Matilainen | 1 | -47/+0 | |
- besides being completely unused, these structs are defined by BDB public headers, no need to mirror them in rpm | |||||
2009-09-16 | Throw out pile of unused "stuff" from 2002 | Panu Matilainen | 1 | -71/+0 | |
2009-09-16 | One complicated way to write xstrdup() .. pff | Panu Matilainen | 1 | -10/+3 | |
- sqlite backend uses dbi subfile for table name, leave it alone although it is the same as the file name... - allocate + free both file and table name separately | |||||
2009-09-16 | Eliminate long since unused db subfile from bdb code | Panu Matilainen | 1 | -24/+2 | |
2009-09-16 | Remove unnecessary arguments to db init and fini | Panu Matilainen | 1 | -20/+9 | |
- bdb environments are per db_home, not per file so dbfile etc dont make sense here | |||||
2009-08-31 | Replace equal/not equal uses of str[n]cmp() with rstreq[n] in backend code | Panu Matilainen | 2 | -6/+6 | |
2009-01-19 | Use temporary table for Depends DB in sqlite too (Olivier Thauvin) | Panu Matilainen | 1 | -2/+4 | |
2009-01-14 | Actually check for dbenv->failchk() exit code | Panu Matilainen | 1 | -0/+3 | |
- failchk() can't resolve all cases, we shouldn't try to continue if it fails | |||||
2009-01-09 | Remove unused database intex functions: dbiCdup, dbiAssociate, dbiPget, dbiJoin | Florian Festi | 2 | -133/+2 | |
and their implementations in the backends | |||||
2008-11-04 | Use more portable file access mode tests (ticket #5) | Panu Matilainen | 1 | -5/+5 | |
- don't make assumptions about how O_RDWR and friends are defined, use the portable way of masking flags with O_ACCMODE and explicit comparison against the mode we're interested in | |||||
2008-10-14 | Avoid overflow on memcpy() | Panu Matilainen | 1 | -2/+2 | |
2008-10-14 | Need to mask the return type from rpmTagGetType() return value | Panu Matilainen | 1 | -2/+2 | |
2008-10-14 | Error out on unknown data types in sqlite backend too | Panu Matilainen | 1 | -2/+7 | |
2008-10-09 | Get db vectors out of exported ABI | Panu Matilainen | 3 | -0/+3 | |
2008-06-06 | Fix typo in sqlite backend preventing it from building | Panu Matilainen | 1 | -1/+1 | |
2008-06-06 | Teach sqlite backend 64bit handling | Jindrich Novy | 1 | -13/+31 | |
2008-05-21 | Include rpmtypes.h first instead of rpmtag.h everywhere | Panu Matilainen | 3 | -3/+3 | |
2008-05-12 | Fixup paths and Makefiles for rpmdb/ elimination | Panu Matilainen | 3 | -6/+6 | |
2008-05-12 | Start (re-)joining librpmdb and librpm | Panu Matilainen | 3 | -0/+3043 | |
- the split is largely arbitrary and mostly just causes, well, arbitrary issues and limitations - just move content from rpmdb/ to lib/ for now |