Skip to content

Commit 5e237a7

Browse files
authored
fix(linstorvolumemanager): create local DB path when required (#102)
When the pool master is changed and if it doesn't have a local DB path then `get_database_path` fails during SR.scan call. This patch allows creating a diskless path if necessary. Signed-off-by: Ronan Abhamon <[email protected]>
1 parent e3e8daf commit 5e237a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/linstorvolumemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ def get_database_path(self):
17471747
:return: The current database path.
17481748
:rtype: str
17491749
"""
1750-
return self._request_database_path(self._linstor)
1750+
return self._request_database_path(self._linstor, activate=True)
17511751

17521752
@classmethod
17531753
def get_all_group_names(cls, base_name):

0 commit comments

Comments
 (0)