mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
AVMService.createSnapshot() returns a map of possibly snapshotted stores.
When one snapshots a store, other stores can be implicitly snapshotted. This change allows clients to exploit this information. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -116,7 +116,7 @@ public class DeploymentServiceImpl implements DeploymentService
|
||||
if (version < 0)
|
||||
{
|
||||
String storeName = srcPath.substring(0, srcPath.indexOf(":"));
|
||||
version = fAVMService.createSnapshot(storeName, null, null);
|
||||
version = fAVMService.createSnapshot(storeName, null, null).get(storeName);
|
||||
}
|
||||
// Get the root of the deployment from this server.
|
||||
AVMNodeDescriptor srcRoot = fAVMService.lookup(version, srcPath);
|
||||
@@ -148,7 +148,7 @@ public class DeploymentServiceImpl implements DeploymentService
|
||||
throw new AVMNotFoundException("Node Not Found: " + parentBase[0]);
|
||||
}
|
||||
}
|
||||
snapshot = remote.createSnapshot(storePath[0], "PreDeploy", "Pre Deployment Snapshot");
|
||||
snapshot = remote.createSnapshot(storePath[0], "PreDeploy", "Pre Deployment Snapshot").get(storePath[0]);
|
||||
|
||||
}
|
||||
// Get the root of the deployment on the destination server.
|
||||
@@ -639,7 +639,7 @@ public class DeploymentServiceImpl implements DeploymentService
|
||||
System.out.println(storeName);
|
||||
if (version < 0)
|
||||
{
|
||||
version = fAVMService.createSnapshot(storeName, null, null);
|
||||
version = fAVMService.createSnapshot(storeName, null, null).get(storeName);
|
||||
}
|
||||
String ticket = service.begin(target, userName, password);
|
||||
deployDirectoryPush(service, ticket, report, callback, version, srcPath, "/");
|
||||
|
Reference in New Issue
Block a user