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:
@@ -177,7 +177,7 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
* @return The version id of the new snapshot.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public int createSnapshot(String tag, String description, Map<String, Integer> snapShotMap)
|
||||
public Map<String, Integer> createSnapshot(String tag, String description, Map<String, Integer> snapShotMap)
|
||||
{
|
||||
VersionRoot lastVersion = AVMDAOs.Instance().fVersionRootDAO.getMaxVersion(this);
|
||||
List<VersionLayeredNodeEntry> layeredEntries =
|
||||
@@ -192,7 +192,7 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
lastVersion.setDescription(description);
|
||||
}
|
||||
snapShotMap.put(fName, lastVersion.getVersionID());
|
||||
return lastVersion.getVersionID();
|
||||
return snapShotMap;
|
||||
}
|
||||
snapShotMap.put(fName, fNextVersionID);
|
||||
// Force copies on all the layered nodes from last snapshot.
|
||||
@@ -299,7 +299,7 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
}
|
||||
// Increment the version id.
|
||||
fNextVersionID++;
|
||||
return fNextVersionID - 1;
|
||||
return snapShotMap;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user