Changeset: e6499489a7fc for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/e6499489a7fc Modified Files: monetdb5/modules/mal/sysmon.c Branch: default Log Message:
Fix typos. diffs (85 lines): diff --git a/monetdb5/modules/mal/sysmon.c b/monetdb5/modules/mal/sysmon.c --- a/monetdb5/modules/mal/sysmon.c +++ b/monetdb5/modules/mal/sysmon.c @@ -167,7 +167,7 @@ SYSMONqueue(Client cntxt, MalBlkPtr mb, /* Temporary hack not allowing MAL clients (mclient -lmal) to use this function */ if (cntxt->sqlcontext == NULL) - throw(MAL, "SYSMONstatistics", SQLSTATE(42000) "Calling from a mclient -lmal."); + throw(MAL, "SYSMONqueue", SQLSTATE(42000) "Calling from a mclient -lmal."); (void)mb; @@ -311,7 +311,7 @@ SYSMONpause(Client cntxt, MalBlkPtr mb, /* Temporary hack not allowing MAL clients (mclient -lmal) to use this function */ if (cntxt->sqlcontext == NULL) - throw(MAL, "SYSMONstatistics", SQLSTATE(42000) "Calling from a mclient -lmal."); + throw(MAL, "SYSMONpause", SQLSTATE(42000) "Calling from a mclient -lmal."); oid tag = 0; size_t i = 0; @@ -358,7 +358,7 @@ SYSMONresume(Client cntxt, MalBlkPtr mb, /* Temporary hack not allowing MAL clients (mclient -lmal) to use this function */ if (cntxt->sqlcontext == NULL) - throw(MAL, "SYSMONstatistics", SQLSTATE(42000) "Calling from a mclient -lmal."); + throw(MAL, "SYSMONresume", SQLSTATE(42000) "Calling from a mclient -lmal."); oid tag = 0; size_t i = 0; @@ -369,9 +369,9 @@ SYSMONresume(Client cntxt, MalBlkPtr mb, assert(getArgType(mb, pci, 1) == TYPE_lng); if ((tag = (oid)*getArgReference_lng(stk, pci, 1)) < 1 ) - throw(MAL, "SYSMONpause", SQLSTATE(22003) "Tag must be positive."); + throw(MAL, "SYSMONresume", SQLSTATE(22003) "Tag must be positive."); if (tag == cntxt->curprg->def->tag) - throw(MAL, "SYSMONpause", SQLSTATE(HY009) "SYSMONpause cannot pause itself."); + throw(MAL, "SYSMONresume", SQLSTATE(HY009) "SYSMONresume cannot pause itself."); MT_lock_set(&mal_delayLock); for (i = 0; i < qsize; i++) { @@ -395,8 +395,8 @@ SYSMONresume(Client cntxt, MalBlkPtr mb, MT_lock_unset(&mal_delayLock); return paused ? MAL_SUCCEED : - i == qsize ? createException(MAL, "SYSMONpause", SQLSTATE(42S12) "Tag "LLFMT" unknown.", tag) : - createException(MAL, "SYSMONpause", SQLSTATE(HY009) "Tag "LLFMT" unknown to the user.", tag); + i == qsize ? createException(MAL, "SYSMONresume", SQLSTATE(42S12) "Tag "LLFMT" unknown.", tag) : + createException(MAL, "SYSMONresume", SQLSTATE(HY009) "Tag "LLFMT" unknown to the user.", tag); } static str @@ -405,7 +405,7 @@ SYSMONstop(Client cntxt, MalBlkPtr mb, M /* Temporary hack not allowing MAL clients (mclient -lmal) to use this function */ if (cntxt->sqlcontext == NULL) - throw(MAL, "SYSMONstatistics", SQLSTATE(42000) "Calling from a mclient -lmal."); + throw(MAL, "SYSMONstop", SQLSTATE(42000) "Calling from a mclient -lmal."); oid tag = 0; size_t i = 0; @@ -416,9 +416,9 @@ SYSMONstop(Client cntxt, MalBlkPtr mb, M assert(getArgType(mb, pci, 1) == TYPE_lng); if ((tag = (oid)*getArgReference_lng(stk, pci, 1)) < 1 ) - throw(MAL, "SYSMONpause", SQLSTATE(22003) "Tag must be positive."); + throw(MAL, "SYSMONstop", SQLSTATE(22003) "Tag must be positive."); if (tag == cntxt->curprg->def->tag) - throw(MAL, "SYSMONpause", SQLSTATE(HY009) "SYSMONpause cannot pause itself."); + throw(MAL, "SYSMONstop", SQLSTATE(HY009) "SYSMONstop cannot pause itself."); MT_lock_set(&mal_delayLock); for (i = 0; i < qsize; i++) { @@ -442,8 +442,8 @@ SYSMONstop(Client cntxt, MalBlkPtr mb, M MT_lock_unset(&mal_delayLock); return paused ? MAL_SUCCEED : - i == qsize ? createException(MAL, "SYSMONpause", SQLSTATE(42S12) "Tag "LLFMT" unknown.", tag) : - createException(MAL, "SYSMONpause", SQLSTATE(HY009) "Tag "LLFMT" unknown to the user.", tag); + i == qsize ? createException(MAL, "SYSMONstop", SQLSTATE(42S12) "Tag "LLFMT" unknown.", tag) : + createException(MAL, "SYSMONstop", SQLSTATE(HY009) "Tag "LLFMT" unknown to the user.", tag); } #include "mel.h" _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org