@ -744,11 +744,11 @@ bool servaMySQLDBC::updateEncodeStatus( uint64_t dbid, uint8_t status, uint8_t p
return false ;
return false ;
} ;
} ;
bool servaMySQLDBC : : updateModuleData ( uint64_t DBID , uint32_t UPPER_ID , uint32_t BOTTOM_ID , uint32_t CAM_ID , uint32_t CAM_STREAM_ID ) {
bool servaMySQLDBC : : updateModuleData ( uint64_t DBID , uint32_t UPPER_ID , uint32_t BOTTOM_ID , uint32_t CAM_ID , uint32_t CAM_STREAM_ID , CSTR vstr , CSTR lstr ) {
if ( m_bIsConnected ) {
if ( m_bIsConnected ) {
char tQBuf [ MAX_PATH_LEN ] ;
char tQBuf [ MAX_PATH_LEN ] ;
sprintf ( tQBuf , " UPDATE `metro_modules` SET `cam_stream`=%d, `top_id`=%d, `bottom_id`=%d, `cam_id`=%d WHERE `id`=% " PRIu64 , CAM_STREAM_ID , UPPER_ID , BOTTOM_ID , CAM_ID , DBID ) ;
# ifdef DEBUG_ALL
sprintf ( tQBuf , " UPDATE `metro_modules` SET `cam_stream`=%d, `top_id`=%d, `bottom_id`=%d, `cam_id`=%d, `tls_version`='%s', `lls_version`='%s' WHERE `id`=% " PRIu64 , CAM_STREAM_ID , UPPER_ID , BOTTOM_ID , CAM_ID , vstr , lstr , DBID ) ;
# ifdef DEBUG
LOG ( tQBuf ) ;
LOG ( tQBuf ) ;
# endif
# endif
m_pDatabase - > SilentQuery ( tQBuf ) ;
m_pDatabase - > SilentQuery ( tQBuf ) ;
@ -835,6 +835,19 @@ bool servaMySQLDBC::setServerStatValue( SERVER_STAT_ENUM ptp, CSTR value ){
return false ;
return false ;
} ;
} ;
bool servaMySQLDBC : : setSystemProp ( CSTR ptr , CSTR ptt ) {
if ( m_bIsConnected ) {
char tQBuf [ MAX_PATH_LEN ] ;
sprintf ( tQBuf , " UPDATE `system_props` SET `%s`='%s' WHERE `id`=1 " , ptr , ptt ) ;
# ifdef DEBUG_ALL
LOG ( tQBuf ) ;
# endif
m_pDatabase - > SilentQuery ( tQBuf ) ;
return true ;
} ;
return false ;
} ;
bool servaMySQLDBC : : updateServerUtilisation ( DBC_SYS_LOAD_INFO * ptr ) {
bool servaMySQLDBC : : updateServerUtilisation ( DBC_SYS_LOAD_INFO * ptr ) {
bool rval = true ;
bool rval = true ;
if ( ptr = = NULL ) return false ;
if ( ptr = = NULL ) return false ;