2018-03-18 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdlogmanager(1) that caused DB corruption when
	a clock was deleted while still being assigned to a grid.
This commit is contained in:
Fred Gleason 2018-03-18 11:07:01 -04:00
parent c1fc523072
commit f39e85ec5f
2 changed files with 6 additions and 2 deletions

View File

@ -16614,3 +16614,6 @@
* Added support for DMA bus-mastering to the HPI driver.
2018-03-18 Fred Gleason <fredg@paravelsystems.com>
* Updated switch() statement formatting in 'rdhpi/'.
2018-03-18 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdlogmanager(1) that caused DB corruption when
a clock was deleted while still being assigned to a grid.

View File

@ -609,9 +609,10 @@ void ListClocks::DeleteClock(QString clockname)
base_name.replace(" ","_");
//
// Delete Active Clocks
// Clear Active Clocks
//
sql=QString("delete from SERVICE_CLOCKS where ")+
sql=QString("update SERVICE_CLOCKS set ")+
"CLOCK_NAME=null where "+
"CLOCK_NAME=\""+RDEscapeString(clockname)+"\"";
q=new RDSqlQuery(sql);
delete q;