View | Details | Raw Unified | Return to bug 990
Collapse All | Expand All

(-)rpm-4_0-4.0.4.orig/rpmdb/db3.c (-2 / +1 lines)
Lines 1107-1113 Link Here
1107
		prDbiOpenFlags(oflags, 0), dbi->dbi_mode);
1107
		prDbiOpenFlags(oflags, 0), dbi->dbi_mode);
1108
1108
1109
    if (rc == 0) {
1109
    if (rc == 0) {
1110
	static int _lockdbfd = 0;
1111
1110
1112
	/*@-moduncon@*/ /* FIX: annotate db3 methods */
1111
	/*@-moduncon@*/ /* FIX: annotate db3 methods */
1113
	rc = db_create(&db, dbenv, dbi->dbi_cflags);
1112
	rc = db_create(&db, dbenv, dbi->dbi_cflags);
Lines 1312-1318 Link Here
1312
	     * DBENV player may already have acquired the lock.
1311
	     * DBENV player may already have acquired the lock.
1313
	     */
1312
	     */
1314
	    if (rc == 0 && dbi->dbi_lockdbfd &&
1313
	    if (rc == 0 && dbi->dbi_lockdbfd &&
1315
		(!dbi->dbi_use_dbenv || _lockdbfd++ == 0))
1314
		!dbi->dbi_use_dbenv)
1316
	    {
1315
	    {
1317
		int fdno = -1;
1316
		int fdno = -1;
1318
1317

Return to bug 990