Skip to content

bug: syslog_replace_data executes wrong variable when creating missing table #258

@somethingwithproof

Description

@somethingwithproof

Summary

syslog_replace_data() computes CREATE TABLE SQL into $create_sql but executes $create instead.

Evidence

setup.php:

  • Captures create SQL from SHOW CREATE TABLE into $create_sql (821-827)
  • Missing-table branch executes syslog_db_execute($create); (831) instead of $create_sql

Impact

Remote replication bootstrap can fail when destination table is missing.

Expected fix

Execute $create_sql in missing-table branch and retain truncate/insert behavior as intended.

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