Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions