Opened 6 years ago

Closed 6 years ago

#13261 closed Patch - Feature (Won't Fix)

Better solution for schema or protocol mismatch

Reported by: Peter Bennett Owned by: Peter Bennett
Priority: minor Milestone: 30.0
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

There are compile options -DIGNORE_SCHEMA_VER_MISMATCH -DIGNORE_PROTO_VER_MISMATCH that nullify the database check and upgrade process and the protocol version check process. These seem to be dangerous options, particularly since they have to be compiled into the system to use them.

There may be cases where you want to ignore schema or protocol mismatch. The attached patch allows the use of override parameters -O IgnoreSchemaVerMismatch=1 -O IgnoreProtoVerMismatch=1 at run time. This way you do not have to build the system with those dangerous options, you can ignore the errors for a single run. Also the IgnoreSchemaVerMismatch? only works for mythfrontend. Using it on mythbackend may be risky.

These options can also be stored in the settings table so that you could use a git-master version of mythfrontend with an older mythbackend as long as schema and protocol differences do not affect you. Often the master frontend has more advanced features that you may want to use, but you are not ready to upgrade the backend to master.

The android packaging script uses those compile time options. Once this patch is committed we could modify the android packaging script to use the run-time options instead of the compile options.

If we get to the stage where we offer the frontend on the google play store, we will need a frontend that supports more than one backend version, because the play store will always install the latest version.

Attachments (1)

20180417_1454_ignore_version_check.patch (2.5 KB) - added by Peter Bennett 6 years ago.
Bypass version check options

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by Peter Bennett

Bypass version check options

comment:1 Changed 6 years ago by Peter Bennett

Resolution: Won't Fix
Status: assignedclosed

MythTV developers reject this patch.

Note: See TracTickets for help on using tickets.