Skip to content

bug: make syslog move/delete operations transactional to avoid partial state #263

@somethingwithproof

Description

@somethingwithproof

Summary

Multiple move/delete flows perform separate INSERT/DELETE statements without transaction boundaries.

Evidence

functions.php:

  • syslog_remove_items() around 613-623
  • syslog_manage_items() around 1005-1015

Impact

On failures/crashes between statements, records can be partially moved/deleted, causing data inconsistency.

Expected fix

  • Wrap coupled INSERT+DELETE operations in transactions
  • Roll back on failure and log explicit error context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions