Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-09-22 | Remove no longer necessary RPMDBI_PACKAGES special casing | Panu Matilainen | 1 | -4/+0 | |
2009-09-22 | Fix endless loop on RPMDBI_PACKAGES iteration when offset specified | Panu Matilainen | 1 | -2/+4 | |
2009-09-22 | Unbreak --tid and --querybynumber | Panu Matilainen | 1 | -34/+10 | |
- broken ages ago somewhere between 4.4.x and 4.6.x by typing changes presumably - C99 strtoul() can figure the base on its own, remove unnecessary work | |||||
2009-09-22 | DB_INCOMPLETE was removed in BDB 4.1 and we dont support older versions | Panu Matilainen | 1 | -5/+3 | |
2009-09-22 | Remove ancient, unused code to filter duplicates on rpmdb rebuild | Panu Matilainen | 2 | -28/+0 | |
- enabling this as-is would be murderous to multilib systems - getting duplicates in the db would be a bug elsewhere | |||||
2009-09-21 | Rip out dependency caching | Panu Matilainen | 2 | -95/+0 | |
- it doesn't speed up things that much, is broken in some chroot scenarios and is ugly ugly hardwired BDB hackery where it doesn't belong | |||||
2009-09-21 | Move rpmdb home creation from backends to one level higher | Panu Matilainen | 4 | -12/+10 | |
- 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 | 3 | -19/+27 | |
2009-09-21 | Remove pointless per-index api version | Panu Matilainen | 2 | -4/+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 | 3 | -73/+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 | 4 | -20/+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 | 2 | -5/+5 | |
- 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 unused local variable | Florian Festi | 1 | -1/+0 | |
2009-09-16 | Remove db environment on close on chrooted operations | Panu Matilainen | 2 | -2/+4 | |
- 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 | Move the default transaction lock out of BDB environment namespace | Panu Matilainen | 1 | -1/+1 | |
- We dont want the transaction lock to get mixed with the BDB environment, nor do we want it wiped out with it as the ts lock protects things *around* the environment. Unlike the environment, any fcntl locks on the file get released when process dies, so if there is a lock, there's a process alive holding it and you'd better not remove it. - Use the same lock path in macro configuration and built-in fallback - Make it a hidden file to avoid people confusing lock file existence with it actually being locked | |||||
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 | Minor cleanup to newRpmdb() | Panu Matilainen | 1 | -6/+1 | |
- no need to free what hasn't been allocated yet | |||||
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-09-16 | Also skip to be erased files in "netsharedpath" | Florian Festi | 1 | -33/+80 | |
fixes rhbz#494640 | |||||
2009-09-15 | Take non-gi errors into account too (SuseBug:527191) | Panu Matilainen | 1 | -1/+1 | |
- patch from OpenSUSE / Michael Schroeder | |||||
2009-09-15 | Don't add dependency type into file requires and provides (RhBug:523282) | Panu Matilainen | 1 | -1/+1 | |
- unintended change in commit 3d8656f040d2c780c88d0cd63594898f0605a6fa | |||||
2009-09-14 | Clean up rpmalAllFileSatisfiesDepend() a bit | Panu Matilainen | 1 | -40/+34 | |
- avoid multiple strrchr() calls - avoid _constfree(), the string size is known from strrchr() so we dont need to allocate on heap at all | |||||
2009-09-10 | Rip the broken asynchronous psm machinery | Panu Matilainen | 6 | -37/+1 | |
- it was only "used" for the ldconfig optimization and actually been completely broken since the ordering rewrite | |||||
2009-09-10 | Rip the broken ldconfig optimization hack (RhBug:513224) | Panu Matilainen | 1 | -25/+0 | |
- it doesn't optimize much and what's worse, it sometimes optimizes out calls that would've been necessary | |||||
2009-09-10 | Rip unnecessary headerDump() and the last ancient artifacts using it | Panu Matilainen | 2 | -141/+0 | |
- xml format dump gives an output that can actually be further processed | |||||
2009-09-10 | Rip unused and useless headerGetLangs() | Panu Matilainen | 2 | -28/+0 | |
- nothing in the world uses it and the info is available through regular headerGet() anyway | |||||
2009-09-10 | Rip unused and useless headerUsageCount() | Panu Matilainen | 1 | -10/+0 | |
2009-09-09 | Eliminate unused goo from findEntry() | Panu Matilainen | 1 | -11/+2 | |
2009-09-09 | Handle NULL header in doHeaderUnload() | Panu Matilainen | 1 | -2/+2 | |
- avoids having to separately check elsewhere and avoids segfaulting on headerUnload() and headerReload() on NULL headers | |||||
2009-09-09 | Eliminate pointless increment | Panu Matilainen | 1 | -1/+0 | |
2009-09-09 | Eliminate yet more unused calculations from header code... | Panu Matilainen | 1 | -5/+1 | |
2009-09-09 | Eliminate unused pad calculations from header code | Panu Matilainen | 1 | -8/+0 | |
2009-09-09 | Eliminate yet another unused variable in header code | Panu Matilainen | 1 | -2/+0 | |
2009-09-09 | Eliminate last remaining leftovers from "8/98 bug" workaround | Panu Matilainen | 1 | -6/+0 | |
- the ieprev calculations aren't used for anything, should've been in commit 4d0d54492c7d539cc806ca9e7fa59e919c28e45d really | |||||
2009-09-09 | Eliminate unnecessary variable & related goo from regionSwab() | Panu Matilainen | 1 | -9/+5 | |