feat(storage): expose backup restoration and maintenance tools
This commit is contained in:
1 parent
88492fdcde
commit
9449a1aa65
18 files changed
+2194
-61
No files matched your search
@@ -35,6 +35,8 @@ func (s *Server) trashClear(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func (s *Server) cleanupTrash(now time.Time) error {
|
||||
s.activity.RLock()
|
||||
defer s.activity.RUnlock()
|
||||
// 与设置写入串行,避免在“永不删除”已保存后使用旧期限开始清理。
|
||||
s.settingsMu.Lock()
|
||||
defer s.settingsMu.Unlock()
|
||||
|
||||
Reference in new issue
Block a user