@@ -29,7+29,7 @@ const bool ThreadBuilder::Build(const long messageid, const long boardid, const
mt.Load(messageid,boardid,bydate);\r
m_threadmessages=mt.GetNodes();\r
\r
mt.Load(messageid,boardid,bydate);\r
m_threadmessages=mt.GetNodes();\r
\r
- // find threadid of this thread if it already exists in a thread\r
+ // find threadid of this mesage if it already exists in a thread\r
SQLite3DB::Statement st=m_db->Prepare("SELECT tblThread.ThreadID FROM tblThread INNER JOIN tblThreadPost ON tblThread.ThreadID=tblThreadPost.ThreadID WHERE tblThread.BoardID=? AND tblThreadPost.MessageID=?;");\r
st.Bind(0,boardid);\r
st.Bind(1,messageid);\r
SQLite3DB::Statement st=m_db->Prepare("SELECT tblThread.ThreadID FROM tblThread INNER JOIN tblThreadPost ON tblThread.ThreadID=tblThreadPost.ThreadID WHERE tblThread.BoardID=? AND tblThreadPost.MessageID=?;");\r
st.Bind(0,boardid);\r
st.Bind(1,messageid);\r
@@ -121,31+121,11 @@ const bool ThreadBuilder::Build(const long messageid, const long boardid, const
deleteotherst.Step();\r
deleteotherst.Reset();\r
\r
deleteotherst.Step();\r
deleteotherst.Reset();\r
\r
- // TODO - remove after corruption issue fixed\r
- if(ll=="8")\r
- {\r
- std::string dbres=TestDBIntegrity();\r
- if(dbres!="ok")\r
- {\r
- m_log->trace("ThreadBuilder::Build after delete other TestDBIntegrity returned "+dbres);\r
- }\r
- }\r
-\r
st4.Bind(0,threadid);\r
st4.Bind(1,(*i).m_messageid);\r
st4.Bind(2,count);\r
st4.Step();\r
st4.Reset();\r
st4.Bind(0,threadid);\r
st4.Bind(1,(*i).m_messageid);\r
st4.Bind(2,count);\r
st4.Step();\r
st4.Reset();\r
-\r
- // TODO - remove after corruption issue fixed\r
- if(ll=="8")\r
- {\r
- std::string dbres=TestDBIntegrity();\r
- if(dbres!="ok")\r
- {\r
- m_log->trace("ThreadBuilder::Build after insert TestDBIntegrity returned "+dbres);\r