mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 12:06:57 +03:00
UBERF-6726: Fix clone for huge files (#5470)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
1d95c39d62
commit
16a891cd48
@ -229,6 +229,9 @@ export async function cloneWorkspace (
|
||||
for (const c of domains) {
|
||||
console.log('clone domain...', c)
|
||||
|
||||
// We need to clean target connection before copying something.
|
||||
await cleanDomain(targetConnection, c)
|
||||
|
||||
const changes: Snapshot = {
|
||||
added: new Map(),
|
||||
updated: new Map(),
|
||||
@ -291,9 +294,6 @@ export async function cloneWorkspace (
|
||||
console.log('Retrieve chunk:', needRetrieve.length)
|
||||
let docs: Doc[] = []
|
||||
try {
|
||||
// We need to clean target connection before copying something.
|
||||
await cleanDomain(targetConnection, c)
|
||||
|
||||
docs = await sourceConnection.loadDocs(c, needRetrieve)
|
||||
if (clearTime) {
|
||||
docs = docs.map((p) => {
|
||||
|
Loading…
Reference in New Issue
Block a user