]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-DB_RDONLY.patch
- add provides/requires scripts macros for perl and python
[packages/rpm.git] / rpm-DB_RDONLY.patch
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.
3
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
6 @@ -1459,7 +1459,7 @@
7         flags |= DB_WRITECURSOR;
8      } else
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);
13  #undef FMASK
14         if (dbi->dbi_oflags & DB_MULTIVERSION)
This page took 0.371557 seconds and 3 git commands to generate.