[linstor] Fix revertSnapshot (#9271)

Signed-off-by: Michael Wodniok (WorNet AG) <michael.wodniok@wor.net>
Co-authored-by: Michael Wodniok <michael.wodniok@wor.net>
This commit is contained in:
Michael Wodniok 2024-06-20 10:52:49 +02:00 committed by GitHub
parent 84b91cc9a3
commit 7dce3d87d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -720,7 +720,7 @@ public class LinstorPrimaryDataStoreDriverImpl implements PrimaryDataStoreDriver
private String doRevertSnapshot(final SnapshotInfo snapshot, final VolumeInfo volumeInfo) {
final StoragePool pool = (StoragePool) volumeInfo.getDataStore();
final DevelopersApi linstorApi = LinstorUtil.getLinstorAPI(pool.getHostAddress());
final String rscName = LinstorUtil.RSC_PREFIX + volumeInfo.getUuid();
final String rscName = LinstorUtil.RSC_PREFIX + volumeInfo.getPath();
String resultMsg;
try {
if (snapshot.getDataStore().getRole() == DataStoreRole.Primary) {