Part of bugfix for storage move problem

@fabrixxm is this already good to change?
2022.09-rc
utzer 2021-03-12 09:55:55 +01:00 zatwierdzone przez GitHub
rodzic 60a74fd5dc
commit e20e62ffd6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -311,7 +311,7 @@ class StorageManager
if ($destinationRef !== '') { if ($destinationRef !== '') {
$this->logger->info('update row'); $this->logger->info('update row');
if ($this->dba->update($table, ['backend-class' => $destination, 'backend-ref' => $destinationRef, 'data' => ''], ['id' => $id])) { if ($this->dba->update($table, ['backend-class' => $destination::getName(), 'backend-ref' => $destinationRef, 'data' => ''], ['id' => $id])) {
if (!empty($source)) { if (!empty($source)) {
$this->logger->info('Delete data from old backend.', ['oldBackend' => $source, 'oldReference' => $sourceRef]); $this->logger->info('Delete data from old backend.', ['oldBackend' => $source, 'oldReference' => $sourceRef]);
$source->delete($sourceRef); $source->delete($sourceRef);