mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=6468
This commit is contained in:
parent
3a1b32e7d6
commit
b91a653741
|
@ -8599,7 +8599,7 @@ David 27 June 2005
|
|||
if you're going to use a "like X" clause,
|
||||
call this function to escape the non-wildcard part of X.
|
||||
If it contains wildcard chars (%, _) this will put
|
||||
two (2) underscores before each one,
|
||||
two (2) backslashes before each one,
|
||||
so that they don't get treated as wildcards
|
||||
- use the above function in sched_locality.C
|
||||
so that filename chars and our own __ separators
|
||||
|
|
|
@ -826,6 +826,7 @@ int CMainDocument::WorkAbort(int iIndex) {
|
|||
int CMainDocument::CachedMessageUpdate() {
|
||||
int retval;
|
||||
static bool in_this_func = false;
|
||||
int new_msg_seqno;
|
||||
|
||||
if (in_this_func) return 0;
|
||||
in_this_func = true;
|
||||
|
@ -846,7 +847,7 @@ int CMainDocument::CachedMessageUpdate() {
|
|||
std::vector<MESSAGE*>::iterator mi = new_msgs.messages.begin();
|
||||
while (mi != new_msgs.messages.end()) {
|
||||
MESSAGE* mp = *mi;
|
||||
m_iMessageSequenceNumber = mp->seqno;
|
||||
new_msg_seqno = mp->seqno;
|
||||
switch(mp->priority) {
|
||||
case MSG_PRIORITY_ALERT_ERROR:
|
||||
if (m_iMessageSequenceNumber) {
|
||||
|
@ -873,6 +874,7 @@ int CMainDocument::CachedMessageUpdate() {
|
|||
}
|
||||
new_msgs.messages.erase(mi);
|
||||
}
|
||||
m_iMessageSequenceNumber = new_msg_seqno;
|
||||
}
|
||||
done:
|
||||
in_this_func = false;
|
||||
|
|
|
@ -120,7 +120,7 @@ void escape_mysql_like_pattern(const char* in, char* out);
|
|||
// if you're going to use a "like X" clause,
|
||||
// call this function to escape the non-wildcard part of X.
|
||||
// If it contains wildcard chars (%, _) this will put
|
||||
// two (2) underscores before each one,
|
||||
// two (2) backslashes before each one,
|
||||
// so that they don't get treated as wildcards
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue