Mailing List Archive

[MythTV/mythtv] cf553e: Housekeeper: allows initial INSERTs to the houseke...
Branch: refs/heads/fixes/32
Home: https://github.com/MythTV/mythtv
Commit: cf553e438c0c2cf09a47aa9d40810f61e4ba1db5
https://github.com/MythTV/mythtv/commit/cf553e438c0c2cf09a47aa9d40810f61e4ba1db5
Author: Bill Meek <bmeek@mythtv.org>
Date: 2022-08-01 (Mon, 01 Aug 2022)

Changed paths:
M mythtv/libs/libmythbase/housekeeper.cpp

Log Message:
-----------
Housekeeper: allows initial INSERTs to the housekeeping table

Fresh DBs have no entries in housekeeping. INSERTs weren't
being made because the test that decided to do it always
failed and caused an UPDATE. That did nothing because a
matching tag wasn't found.

Now, always do an UPDATE and if the no rows were affected,
then do an INSERT.


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits