mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-08 18:59:03 +00:00
Fix get fs-id-list for virtual repos (#533)
This commit is contained in:
@@ -774,7 +774,6 @@ func getBlockInfo(rsp http.ResponseWriter, r *http.Request) *appError {
|
||||
}
|
||||
|
||||
sendStatisticMsg(storeID, user, "sync-file-download", uint64(blockSize))
|
||||
rsp.WriteHeader(http.StatusOK)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -867,8 +866,6 @@ func putCommitCB(rsp http.ResponseWriter, r *http.Request) *appError {
|
||||
return &appError{err, "", http.StatusInternalServerError}
|
||||
}
|
||||
|
||||
rsp.WriteHeader(http.StatusOK)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -1231,14 +1228,14 @@ func calculateSendObjectList(ctx context.Context, repo *repomgr.Repo, serverHead
|
||||
FileCB: collectFileIDs,
|
||||
DirCB: collectDirIDs,
|
||||
Ctx: ctx,
|
||||
RepoID: repo.ID}
|
||||
RepoID: repo.StoreID}
|
||||
opt.Data = &results
|
||||
} else {
|
||||
opt = &diff.DiffOptions{
|
||||
FileCB: collectFileIDsNOp,
|
||||
DirCB: collectDirIDs,
|
||||
Ctx: ctx,
|
||||
RepoID: repo.ID}
|
||||
RepoID: repo.StoreID}
|
||||
opt.Data = &results
|
||||
}
|
||||
trees := []string{masterHead.RootID, remoteHeadRoot}
|
||||
|
Reference in New Issue
Block a user