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,
|
if you're going to use a "like X" clause,
|
||||||
call this function to escape the non-wildcard part of X.
|
call this function to escape the non-wildcard part of X.
|
||||||
If it contains wildcard chars (%, _) this will put
|
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
|
so that they don't get treated as wildcards
|
||||||
- use the above function in sched_locality.C
|
- use the above function in sched_locality.C
|
||||||
so that filename chars and our own __ separators
|
so that filename chars and our own __ separators
|
||||||
|
|
|
@ -826,6 +826,7 @@ int CMainDocument::WorkAbort(int iIndex) {
|
||||||
int CMainDocument::CachedMessageUpdate() {
|
int CMainDocument::CachedMessageUpdate() {
|
||||||
int retval;
|
int retval;
|
||||||
static bool in_this_func = false;
|
static bool in_this_func = false;
|
||||||
|
int new_msg_seqno;
|
||||||
|
|
||||||
if (in_this_func) return 0;
|
if (in_this_func) return 0;
|
||||||
in_this_func = true;
|
in_this_func = true;
|
||||||
|
@ -846,7 +847,7 @@ int CMainDocument::CachedMessageUpdate() {
|
||||||
std::vector<MESSAGE*>::iterator mi = new_msgs.messages.begin();
|
std::vector<MESSAGE*>::iterator mi = new_msgs.messages.begin();
|
||||||
while (mi != new_msgs.messages.end()) {
|
while (mi != new_msgs.messages.end()) {
|
||||||
MESSAGE* mp = *mi;
|
MESSAGE* mp = *mi;
|
||||||
m_iMessageSequenceNumber = mp->seqno;
|
new_msg_seqno = mp->seqno;
|
||||||
switch(mp->priority) {
|
switch(mp->priority) {
|
||||||
case MSG_PRIORITY_ALERT_ERROR:
|
case MSG_PRIORITY_ALERT_ERROR:
|
||||||
if (m_iMessageSequenceNumber) {
|
if (m_iMessageSequenceNumber) {
|
||||||
|
@ -873,6 +874,7 @@ int CMainDocument::CachedMessageUpdate() {
|
||||||
}
|
}
|
||||||
new_msgs.messages.erase(mi);
|
new_msgs.messages.erase(mi);
|
||||||
}
|
}
|
||||||
|
m_iMessageSequenceNumber = new_msg_seqno;
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
in_this_func = false;
|
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,
|
// if you're going to use a "like X" clause,
|
||||||
// call this function to escape the non-wildcard part of X.
|
// call this function to escape the non-wildcard part of X.
|
||||||
// If it contains wildcard chars (%, _) this will put
|
// 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
|
// so that they don't get treated as wildcards
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue