Skip to content

Commit b0907a2

Browse files
committed
Apply configuration change after cluster restarted, #133
1 parent efa3e9b commit b0907a2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pysyncobj/syncobj.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,14 @@ def __doApplyCommand(self, command):
770770
if callback is not None:
771771
callback(oldVer, ver)
772772
return
773+
774+
# This is required only after node restarts and apply journal
775+
# for normal case it is already done earlier and calls will be ignored
776+
clusterChangeRequest = self.__parseChangeClusterRequest(command)
777+
if clusterChangeRequest is not None:
778+
self.__doChangeCluster(clusterChangeRequest)
779+
return
780+
773781
if commandType != _COMMAND_TYPE.REGULAR:
774782
return
775783
command = pickle.loads(command[1:])

0 commit comments

Comments
 (0)