diff options
-rw-r--r-- | rpmdb/db3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdb/db3.c b/rpmdb/db3.c index 6c672faa4..efbfb688b 100644 --- a/rpmdb/db3.c +++ b/rpmdb/db3.c @@ -508,10 +508,10 @@ static int db3copen(dbiIndex dbi, DB_TXN * txnid, int flags; int rc; + /* XXX DB_WRITECURSOR cannot be used with sunrpc dbenv. */ assert(db != NULL); if ((dbiflags & DB_WRITECURSOR) && - (dbi->dbi_eflags & DB_INIT_CDB) && !(dbi->dbi_oflags & DB_RDONLY) - && !((dbi->dbi_ecflags & DB_CLIENT) && dbi->dbi_host)) + (dbi->dbi_eflags & DB_INIT_CDB) && !(dbi->dbi_oflags & DB_RDONLY)) { flags = DB_WRITECURSOR; } else |