Mailinglist Archive: zypp-devel (84 mails)
| < Previous | Next > |
Re: [zypp-devel] rpmdb: illegal flag specified to DB->cursor
- From: Michael Schroeder <mls@xxxxxxx>
- Date: Fri, 22 Aug 2008 13:06:55 +0200
- Message-id: <20080822110655.GB2376@xxxxxxx>
On Fri, Aug 22, 2008 at 12:57:50PM +0200, Michael Schroeder wrote:
Does it still happen if you add DB_INIT_CDB to the dbenv->open call
in repo_rpmdb.c? (Maybe you also have to delete DB_PRIVATE, but first
try with just DB_INIT_CDB.)
Cheers,
Michael.
--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
On Fri, Aug 22, 2008 at 11:31:55AM +0200, Lorenzo Villani wrote:
I'm having this problem on Fedora (9):
rpmdb: illegal flag specified to DB->cursor
error: db4 error(22) from db->cursor: Invalid argument
This usually happens when using zypper and then yum or vice-versa.
I don't know what's causing this problem but running rpm --rebuilddb
usually fixes this.
Looking at the berkeley db code it seems to me that libzypp or
libsatsolver use the dbenv somewhat different than rpm:
switch (flags) {
case 0:
break;
case DB_WRITECURSOR:
if (IS_READONLY(dbp))
return (__db_rdonly(dbenv, "DB->cursor"));
if (!CDB_LOCKING(dbenv))
return (__db_ferr(dbenv, "DB->cursor", 0));
break;
It must be that CDB_LOCKING() test. I've no clue why this happens,
though.
Does it still happen if you add DB_INIT_CDB to the dbenv->open call
in repo_rpmdb.c? (Maybe you also have to delete DB_PRIVATE, but first
try with just DB_INIT_CDB.)
Cheers,
Michael.
--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |