Blame 0001-Issue-deprecation-warning-when-creating-BDB-database.patch
|
Panu Matilainen |
b47d15 |
From 5a80033676f331de2b0979fe7be9557279b6bff3 Mon Sep 17 00:00:00 2001
|
|
Panu Matilainen |
b47d15 |
Message-Id: <5a80033676f331de2b0979fe7be9557279b6bff3.1603865959.git.pmatilai@redhat.com>
|
|
Panu Matilainen |
b47d15 |
From: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
b47d15 |
Date: Wed, 28 Oct 2020 08:14:55 +0200
|
|
Panu Matilainen |
b47d15 |
Subject: [PATCH] Issue deprecation warning when creating BDB databases
|
|
Panu Matilainen |
b47d15 |
|
|
Panu Matilainen |
b47d15 |
---
|
|
Panu Matilainen |
b47d15 |
lib/backend/db3.c | 4 ++++
|
|
Panu Matilainen |
b47d15 |
1 file changed, 4 insertions(+)
|
|
Panu Matilainen |
b47d15 |
|
|
Panu Matilainen |
b47d15 |
diff --git a/lib/backend/db3.c b/lib/backend/db3.c
|
|
Panu Matilainen |
b47d15 |
index 68cfa6fb2..cb31676e7 100644
|
|
Panu Matilainen |
b47d15 |
--- a/lib/backend/db3.c
|
|
Panu Matilainen |
b47d15 |
+++ b/lib/backend/db3.c
|
|
Panu Matilainen |
b47d15 |
@@ -874,6 +874,10 @@ static int db3_dbiOpen(rpmdb rdb, rpmDbiTagVal rpmtag, dbiIndex * dbip, int flag
|
|
Panu Matilainen |
b47d15 |
oflags &= ~DB_RDONLY;
|
|
Panu Matilainen |
b47d15 |
dbtype = (rpmtag == RPMDBI_PACKAGES) ? DB_HASH : DB_BTREE;
|
|
Panu Matilainen |
b47d15 |
retry_open--;
|
|
Panu Matilainen |
b47d15 |
+ if (rpmtag == RPMDBI_PACKAGES) {
|
|
Panu Matilainen |
b47d15 |
+ rpmlog(RPMLOG_WARNING,
|
|
Panu Matilainen |
b47d15 |
+ "using deprecated bdb database backend");
|
|
Panu Matilainen |
b47d15 |
+ }
|
|
Panu Matilainen |
b47d15 |
} else {
|
|
Panu Matilainen |
b47d15 |
retry_open = 0;
|
|
Panu Matilainen |
b47d15 |
}
|
|
Panu Matilainen |
b47d15 |
--
|
|
Panu Matilainen |
b47d15 |
2.28.0
|
|
Panu Matilainen |
b47d15 |
|