call global postgetstorage plugins (like spec) before non-global ones (like type)
Fixes
@@ -1394,6 +1394,19 @@ cachemiss:
ksClear (ks);
splitMergeBackends (split, ks);
+ if (elektraGlobalGet (handle, ks, parentKey, POSTGETSTORAGE, INIT) == ELEKTRA_PLUGIN_STATUS_ERROR)
+ {
+ goto error;
+ }
+ if (elektraGlobalGet (handle, ks, parentKey, POSTGETSTORAGE, MAXONCE) == ELEKTRA_PLUGIN_STATUS_ERROR)
+ {
+ goto error;
+ }
+ if (elektraGlobalGet (handle, ks, parentKey, POSTGETSTORAGE, DEINIT) == ELEKTRA_PLUGIN_STATUS_ERROR)
+ {
+ goto error;
+ }
+
clearError (parentKey);
if (elektraGetDoUpdateWithGlobalHooks (handle, split, ks, parentKey, initialParent, LAST) == -1)
{
@@ -1429,7 +1442,6 @@ cachemiss:
ksClear (ks);
splitMergeBackends (split, ks);
- }
keySetName (parentKey, keyName (initialParent));
@@ -1445,6 +1457,9 @@ cachemiss:
{
goto error;
}
+ }
+
+ keySetName (parentKey, keyName (initialParent));
if (handle->globalPlugins[POSTGETCACHE][MAXONCE])
{
