Skip to content

Commit f0897c0

Browse files
rp-dhslove
authored andcommitted
linstor: fix host connect recursion regression (apache#10878)
1 parent c0416fe commit f0897c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/provider/LinstorHostListener.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import com.cloud.exception.StorageConflictException;
2020
import com.cloud.host.HostVO;
21-
import org.apache.cloudstack.storage.datastore.db.StoragePoolVO;
2221

2322
public class LinstorHostListener extends DefaultHostListener {
2423
@Override
@@ -28,7 +27,6 @@ public boolean hostConnect(long hostId, long poolId) throws StorageConflictExcep
2827
host.setParent(host.getName());
2928
hostDao.update(host.getId(), host);
3029
}
31-
StoragePoolVO pool = primaryStoreDao.findById(poolId);
32-
return super.hostConnect(host, pool);
30+
return super.hostConnect(hostId, poolId);
3331
}
3432
}

0 commit comments

Comments
 (0)