public void notifyOfCatalogUpdate ( ) { m_catalogContext . set ( VoltDB . instance ( ) . getCatalogContext ( ) ) ; /* * Update snapshot daemon settings. * * Don't do it if the system is still initializing (CL replay), * because snapshot daemon may call @SnapshotScan on activation and * it will mess replaying txns up. */ if ( VoltDB . instance ( ) . getMode ( ) != OperationMode . INITIALIZING ) { mayActivateSnapshotDaemon ( ) ; //add a notification to client right away StoredProcedureInvocation spi = new StoredProcedureInvocation ( ) ; spi . setProcName ( "@SystemCatalog" ) ; spi . setParams ( "PROCEDURES" ) ; spi . setClientHandle ( ASYNC_PROC_HANDLE ) ; notifyClients ( m_currentProcValues , m_currentProcSupplier , spi , OpsSelector . SYSTEMCATALOG ) ; } }
Set the flag that tells this client interface to update its catalog when it s threadsafe .