- if (cache_delete)
- {
- size_t curr_size = 0;
-
- if (cache_delete_task(true, &curr_size) != 0)
- {
- debug_log(ASL_LEVEL_NOTICE, "cache_delete_process failed - can't determine current size\n");
- }
- else
- {
- debug_log(ASL_LEVEL_NOTICE, "cache delete current size = %lu\n", curr_size);
-
- if (!cache_delete_query)
- {
- size_t new_size = curr_size - opts.all_max;
-
- if (cache_delete_task(false, &new_size) != 0)
- {
- debug_log(ASL_LEVEL_NOTICE, "cache_delete_process failed - delete failed\n");
- }
- else
- {
- debug_log(ASL_LEVEL_NOTICE, "cache delete new size = %lu\n", new_size);
- }
- }
- }
-
- asl_out_module_free(mod);
-
- debug_log(ASL_LEVEL_NOTICE, "----------------------------------------\n");
- debug_log(ASL_LEVEL_ERR, "aslmanager finished%s\n", dryrun ? " dryrun" : "");
- debug_close();
-
- return 0;
- }
-