Added: #1440 Some comments

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 13 years ago
parent 085170e607
commit 8cc89676d7

@ -48,6 +48,7 @@ using namespace NLNET;
namespace PIPELINE { namespace PIPELINE {
#define PIPELINE_INFO_SLAVE_RELOAD_SHEETS "SLAVE_RELOAD_SHEETS" #define PIPELINE_INFO_SLAVE_RELOAD_SHEETS "SLAVE_RELOAD_SHEETS"
#define PIPELINE_ERROR_SHEETS_CRC32_FAILED "Failed sheets CRC32. Sheets were modified inbetween launching services. This causes newly loaded services to be out of sync. Not allowed. Reload the sheets from the master service, and restart this slave service"
enum TRequestState enum TRequestState
{ {
@ -111,7 +112,7 @@ public:
// TODO: AUTHENTICATE OR GATEWAY SECURITY? // TODO: AUTHENTICATE OR GATEWAY SECURITY?
CModulePipelineMasterProxy master(sender); CModulePipelineMasterProxy master(sender);
if (!g_PipelineWorkspace->loadCRC32()) if (!g_PipelineWorkspace->loadCRC32())
nlerror("Failed sheets CRC32. Sheets were modified inbetween launching services. This causes newly loaded services to be out of sync. Not allowed"); nlerror(PIPELINE_ERROR_SHEETS_CRC32_FAILED);
sendMasterAvailablePlugins(&master); sendMasterAvailablePlugins(&master);
} }
@ -147,7 +148,7 @@ public:
{ {
m_ReloadSheetsState = REQUEST_NONE; m_ReloadSheetsState = REQUEST_NONE;
if (!g_PipelineWorkspace->loadCRC32()) if (!g_PipelineWorkspace->loadCRC32())
nlerror("Failed sheets CRC32. Sheets were modified inbetween launching services. This causes newly loaded services to be out of sync. Not allowed"); nlerror(PIPELINE_ERROR_SHEETS_CRC32_FAILED);
sendMasterAvailablePlugins(m_Master); sendMasterAvailablePlugins(m_Master);
m_Master->slaveReloadedSheets(this); m_Master->slaveReloadedSheets(this);
CInfoFlags::getInstance()->removeFlag(PIPELINE_INFO_SLAVE_RELOAD_SHEETS); CInfoFlags::getInstance()->removeFlag(PIPELINE_INFO_SLAVE_RELOAD_SHEETS);

@ -83,7 +83,7 @@ class CPipelineWorkspace
protected: protected:
NLGEORGES::UFormLoader *m_FormLoader; NLGEORGES::UFormLoader *m_FormLoader;
NLMISC::CRefPtr<NLGEORGES::UForm> m_Form; NLMISC::CRefPtr<NLGEORGES::UForm> m_Form;
std::vector<NLMISC::CRefPtr<NLGEORGES::UForm> > m_Plugins; std::vector<NLMISC::CRefPtr<NLGEORGES::UForm> > m_Plugins; // TODO: CRC32 VERIFICATION ON PLUGINS SHEETS!
std::map<std::string, CPipelineProject *> m_Projects; std::map<std::string, CPipelineProject *> m_Projects;
uint32 m_ChangedReference; uint32 m_ChangedReference;
uint32 m_FileSizeReference; uint32 m_FileSizeReference;

Loading…
Cancel
Save