1 DB_RDONLY DB->open flag has the same value as DB_READ_COMMITTED DB->cursor flag,
2 but DB_READ_COMMITTED cannot be used with read-only database.
4 --- rpm-5.4.17/rpmdb/db3.c.orig 2017-02-21 22:16:39.337643373 +0100
5 +++ rpm-5.4.17/rpmdb/db3.c 2017-02-24 23:44:44.324623426 +0100
7 flags |= DB_WRITECURSOR;
9 if (dbi->dbi_eflags & DB_INIT_TXN) {
10 -#define FMASK (DB_READ_UNCOMMITTED|DB_READ_COMMITTED)
11 +#define FMASK (DB_READ_UNCOMMITTED)
12 flags |= (dbi->dbi_oflags & FMASK);
14 if (dbi->dbi_oflags & DB_MULTIVERSION)