1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-11 19:53:06 +00:00
Commit Graph

54 Commits

Author SHA1 Message Date
feiniks
5899f110b9
Add online gc (#706)
* Add online gc core

* Add check gc when update repo

* Go add check gc when update repo

* Add gc unit test

* Support set pwd_hash for gc and fsck

* Optimize to check if block exists

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-10-24 18:34:16 +08:00
feiniks
1afed5d770
Support archive files with same name (#705)
* Support archive files with same name

* Go support archive files with same name

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-27 17:20:04 +08:00
feiniks
c80bf17efb
Add batch del files RPC (#694)
* Add batch del files RPC

* Add pack multi-level files

* Go add pack multi-level files

* Use change set to batch del files

* Improve args

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-13 14:58:45 +08:00
feiniks
7d26e0a8f4
Skip merge when post files with replace existed (#671)
* Skip merge when post files with replace existed

* Use handle_concurrent_update to check if merge commits

* Go handle concurrent update

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-27 10:39:09 +08:00
feiniks
6c056c1f6b
Add last_modify field in form (#666)
* Add last_modify field in form

* Go add last_modify field in form

* Use rfc3339 time format

* Add mtime for upload_blks_api

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-23 18:52:15 +08:00
feiniks
de3ddbce82
Create parent dirs when revert file (#667)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-23 11:27:49 +08:00
杨赫然
11d4741224 Merge branch '11.0' 2024-07-16 17:37:24 +08:00
feiniks
84eb58f01c
Skip check user when export file and fix build error (#659)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-06-18 15:29:33 +08:00
feiniks
4ca723d183
Fix the inability to move files with special characters (#656)
* Fix the inability to move files with special characters

* Check json file list

* Don't need to check json list

* Set SEAF_ERR_BAD_ARGS when args is wrong

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-05-06 17:55:04 +08:00
feiniks
b2bd7b7b6b
Don't support move directory to its subdirectory (#645)
* Don't support move directory to its subdirectory

* Check move dir to sub dir

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-02-04 16:40:34 +08:00
feiniks
2d667a5c99
Check files with same name before post (#638)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-11-22 16:57:13 +08:00
feiniks
30f26ef24f
Support copy/move files between enc repos (#611)
* Support copy/move files between enc repos

* Check block_id is empty

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-05-05 11:34:23 +08:00
feiniks
b5993456e3
Add retry count to 10 (#609)
* Add retry count to 10

* Add sleep interval and print max retry count

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-04-21 17:53:29 +08:00
feiniks
be260e4c6a
Clear error when retry upload (#568)
* Clear error when retry upload

* Add go_log_level option

* Fix type mismatch

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-21 16:29:47 +08:00
feiniks
8c9043d2c6
Retry upload when detecting concurrent uploads (#564)
* Retry upload when detecting concurrent uploads

* Check conflict when update branch and set concurrent upload error

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-15 14:45:36 +08:00
feiniks
faf434def9
Add count of duplicate names to 1000 (#561) 2022-06-21 15:28:34 +08:00
feiniks
0db03851a0
File names in json format (#559) 2022-06-16 12:36:34 +08:00
Xiangyue Cai
8a234215c4
improve get_deleted rpc (#479)
* improve get_deleted rpc

* improve code
2021-07-22 17:51:13 +08:00
feiniks
d50359c908
Add and del ccnet compilation dependency in seafile (#347)
* Add and del ccnet compilation dependency in seafile

* Del import ccnet

* Del extra ccnet compilation dependencies

* Del support WIN32
2020-05-09 16:31:47 +08:00
杨赫然
c20b17cdbc Merge branch '7.0' 2020-02-17 12:02:50 +08:00
杨赫然
ed94680e9c Fix find deleted api 2019-12-09 11:58:08 +08:00
ly1217
b6bc0b2f39 Fix memory leak when del file. 2019-10-21 02:20:17 -07:00
ly1217
cd68e1a2d6 Fix the problems of checking repo usage when copy or move. 2019-07-09 00:36:42 -07:00
ly1217
87d952b7c2 Check repo space when copy or move files. 2019-07-06 03:00:09 -07:00
Jonathan Xu
d6fec719c7 Fix bug when moving files. 2019-05-30 20:37:43 +08:00
Jonathan Xu
15f01d3854 Don't return error if file doesn't exist when del_file is called. 2019-05-18 17:05:35 +08:00
cuihaikuo
cb3f31314a
Merge branch 'master' into cross_repo_copy 2019-04-01 14:50:23 +08:00
Jiaqiang Xu
3f5b7e4025
Merge pull request #210 from haiwen/optimize_rename_delete
Optimize cleaning-up of virtual repos and renaming, deleting operations.
2019-03-25 18:46:12 +08:00
cuihaikuo
2e41b60ab0 Optimize copy and move file. 2019-03-25 18:37:38 +08:00
cuihaikuo
7fe43a0248 Optimize cleaning-up of virtual repos and renaming, deleting operations. 2019-03-24 20:37:04 +08:00
ly1217
86b49ba766 Fix file modified date changes to current after moving or copying. 2019-02-21 18:44:49 -08:00
Jonathan Xu
ef362bda37 Ignore 'need_idx_progress' parameter when handling upload requests.
There is a bug in cloud file browser that can cause high number of concurrent uploads.

Also reduce the number retries when updating head commit in db.
2018-12-08 11:37:54 +08:00
cuihaikuo
caee7ef963 Support background task for indexing blocks. 2018-02-06 14:37:27 +08:00
cuihaikuo
837562c482 Fix a bug in listing file history. 2017-12-11 16:37:02 +08:00
cuihaikuo
1be480a560
Merge pull request #95 from haiwen/list_file_history
Keep at least 2 revisions (if exists) when listing file history.
2017-12-09 10:05:04 +08:00
cuihaikuo
936cfd8c74 Support pagination in listing file histories.
Keep at least 2 versions (if exists) when listing file history.
2017-12-08 11:58:24 +08:00
Jonathan Xu
c580b0d4ed Don't accept blocks upload in upload-blks-api and update-blks-api. 2017-11-18 11:33:19 +08:00
cuihaikuo
fa1e439633 Allow to generate at most 100 filenames with suffix. 2017-10-16 13:30:28 +08:00
cuihaikuo
3fdce0d321 Fix a bug that may cause a core dump. 2017-08-28 17:14:55 +08:00
Jonathan Xu
a87db5b58e Improved concurrent update handling. 2017-08-16 17:50:34 +08:00
cuihaikuo
f257becc8a Fix a few problems in uploading a folder 2017-07-25 17:43:44 +08:00
cuihaikuo
cc4ab3885b A few improvements for posting multiple files 2017-06-29 23:17:55 +08:00
cuihaikuo
ffd92675be Create only one commit when move or copy multiple files 2017-06-29 14:23:22 +08:00
Jonathan Xu
62833505af Update repo size and file count after creating an empty file. 2017-06-28 13:35:26 +08:00
cuihaikuo
339cfe1ed9 Merge pull request #49 from haiwen/6.0
Create only one commit when delete multiple files
2017-06-08 13:58:24 +08:00
cuihaikuo
5dddbf4e07 Create only one commit when delete multiple files 2017-06-05 14:49:32 +08:00
cuihaikuo
1dc5798f4a Allow to upload folder 2017-04-25 11:34:18 +08:00
cuihaikuo
ed05760019 Check path when revert file and directory 2017-04-19 17:16:38 +08:00
Jonathan Xu
4ce41cfd6a Fix bug in returning deleted files. 2017-02-11 17:24:33 +08:00
Jiaqiang Xu
0fdc2ae048 Fix block order bug of block upload apis. 2016-10-09 17:30:49 +08:00