perl: run initLibStore() on openStore()

Since #7478 it's mandatory that `initLibStore()` is called for store
operations. However that's not the case when running `openStore()` in
Perl using the perl-bindings. That breaks e.g. `hydra-eval-jobset` when
built against Nix 2.13 which uses small portions of the store API.
This commit is contained in:
Maximilian Bosch 2023-01-28 11:48:23 +01:00
parent 04de0dd0b4
commit 51013da921
No known key found for this signature in database
GPG key ID: 9A6EEA275CA5BE0A

View file

@ -26,6 +26,7 @@ static ref<Store> store()
static std::shared_ptr<Store> _store; static std::shared_ptr<Store> _store;
if (!_store) { if (!_store) {
try { try {
initLibStore();
loadConfFile(); loadConfFile();
settings.lockCPU = false; settings.lockCPU = false;
_store = openStore(); _store = openStore();