[Rpm-maint] [rpm-software-management/rpm] Implement a separate lock for the keystore (PR #4123)
Panu Matilainen
notifications at github.com
Tue Mar 31 07:28:59 UTC 2026
@pmatilai commented on this pull request.
> @@ -153,11 +161,7 @@ int rpmtsRebuildDB(rpmts ts)
rc = rpmdbRebuild(ts->rootDir, NULL, NULL, rebuildflags);
rpmtxnEnd(txn);
}
- /* Re-create lock file */
- rpmtsLockFree(ts);
- txn = rpmtxnBegin(ts, RPMTXN_WRITE);
- if (txn)
- rpmtxnEnd(txn);
+ ensureKrlock(ts);
Ok, made both the init and rebuild operations use identical logic for this - only init the keyring lock inside the txn lock and only on success (on failure it doesn't matter).
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4123?email_source=notifications&email_token=ADLPZU5JJN54WJWLRB4NZJL4TNXTXA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTIMBTGUZDQOBTGQ4KM4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOS6XA4S7OJSXM2LFO5PW433UNFTGSY3BORUW63TTL5RWY2LDNM#discussion_r3014043316
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4123/review/4035288348 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260331/70eb1975/attachment-0001.htm>
More information about the Rpm-maint
mailing list