Ad Widget

Collapse

[1.6]to[1.6.1] source modification mistake?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fripper
    Junior Member
    • Sep 2008
    • 10

    #1

    [1.6]to[1.6.1] source modification mistake?

    I want to renew my ZABBIX from 1.6 to 1.6.1,
    and I checked the difference between them.
    In this process I discovered an difference point
    that seems to be so fatal.

    ./zabbix-1.6.1/src/libs/zbxdbhigh/dbschema.c

    -----
    const char *db_schema =
    -----

    in v1.6
    indent and blank character is [blank]

    in v1.6.1
    indent and blank character is [TAB]
    and character 't' modifies to [blank]

    e.g.
    'integer' -> 'in eger'


    this const 'db_schema' using at only with SQLite.

    Does not this influence?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    What is your platform?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • fripper
      Junior Member
      • Sep 2008
      • 10

      #3
      Hi Alexei, thank you for your reply.

      Originally posted by Alexei
      What is your platform?
      My platform:
      --
      RedHat Enterprise Linux 4 ES Update 7
      MySQL 5.0.67-linux-i686-glibc23
      --


      Neither [compile error] nor [hungs up zabbix module]
      have happened in my environment.

      It seems..
      to conversion db schema sql to source code,
      modifier uses a tool likes 'sed' that can use 'Regular expression'

      convert [blank(space)] to [TAB(\t)]
      [line feed (\n)] to [back-slash and line feed (\\\n)]
      eg.
      's/ /\t/g'
      's/\\n/\\\\n/g'

      but the input mistake might been done.
      character 't' to converted to [blank(space)]

      Comment

      Working...