• last updated 16 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- improve safety of orphan file deletion (e.g in case, fetch_paths returns empty file names)

    • -34
    • +45
    ./acs-content-repository-procs.tcl
  1. … 1 more file in changeset.
acs-content-repository:

- new public function "cr_cleanup_orphaned_files" to clean up orphaned

files incrementally based on cr-file creation log

- added "cr_cleanup_orphaned_files" to "cr_delete_scheduled_files"

to perform cleanup automatically

- new function to handle cr-file creation log, which is used to

removed orphaned files (created by aborted transactions)

- the function "cr_check_orphaned_files" can still be used

for cleaning up orphaned files from times before the

cr-file creation log was in place (that is from the birth of

OpenACS until now).

acs-tcl:

- new function "ad_mutex_eval" for safely executing

tcl commands under a mutex lock

    • -13
    • +18
    ./acs-content-repository-procs.tcl
  1. … 5 more files in changeset.
Added check for trailing slash on cr folder, required for find command to work properly.

    • -17
    • +24
    ./acs-content-repository-procs.tcl
- use external command "find" instead of tcllib package fileutil for speed and better filtering

- add index for much quicker reverse lookup file names in the content repository

  1. … 6 more files in changeset.
- cr_check_orphaned_files: new helper proc to locate (or delete) orphaned files in the content repository (see also bug #2619)

- replace deprecated command "ns_unlink" with native tcl command "file delete"

  1. … 7 more files in changeset.
Normalizing string comparison operations into tcl 8.4 operations, enabling byte-code compilation for expressions and many conditionals

  1. … 367 more files in changeset.
adding defaults to creation_user, creation_ip, content_type to content::item::new

  1. … 7 more files in changeset.
provided default template in oracle

  1. … 5 more files in changeset.
check that the ns_set exists before trying to create new mime types in cr_scan_mime_types

    • -12
    • +14
    ./acs-content-repository-procs.tcl
Merge of all changes from oacs-4-6 to HEAD. All changes up to tag jcd-merge-2

on oacs-4-6 are included.

    • -10
    • +19
    ./acs-content-repository-procs.tcl
  1. … 33 more files in changeset.
remove oracle file, fix fetch_paths query, comment on idiocy of existing delete function fixes bug 81

    • -10
    • +19
    ./acs-content-repository-procs.tcl
  1. … 1 more file in changeset.
merge from oacs-4-6

  1. … 110 more files in changeset.
fix for scanning mime types at startup - not quite the full fix that JeffD proposed, but will get to that

  1. … 2 more files in changeset.
fixed file sweeper proc for oracle

  1. … 2 more files in changeset.
added support for multiple file storage areas

    • -0
    • +37
    ./acs-content-repository-procs.tcl
  1. … 11 more files in changeset.