mirror of
https://github.com/anope/anope.git
synced 2026-07-09 04:03:13 +02:00
BUILD : 1.7.21 (1385) BUGS : 862 NOTES : rdb_close() where rdb_open() is used in rdb_dbase() functions.
git-svn-id: svn://svn.anope.org/anope/trunk@1385 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1100 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
7c476bb32e
commit
46c09b5da9
@@ -36,6 +36,7 @@ Anope Version S V N
|
||||
02/11 F Fixed memory leak in add_akill(). [#868]
|
||||
02/11 F Fixed memory leak in cs_akick(). [#870]
|
||||
02/11 F Added missed debug message when HostServ is disabled. [#863]
|
||||
02/12 F rdb_close() where rdb_open() is used in rdb_dbase() functions. [#862]
|
||||
|
||||
Provided by Trystan <trystan@nomadirc.net> - 2008
|
||||
02/11 F Last part of memory leak in cs_akick() [#870]
|
||||
|
||||
+3
-3
@@ -544,6 +544,7 @@ void save_bs_rdb_dbase(void)
|
||||
|
||||
if (rdb_tag_table("anope_bs_core") == 0) {
|
||||
alog("Unable to tag table 'anope_bs_core' - BotServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -551,15 +552,14 @@ void save_bs_rdb_dbase(void)
|
||||
for (bi = botlists[i]; bi; bi = bi->next) {
|
||||
if (rdb_save_bs_core(bi) == 0) {
|
||||
alog("Unable to save BotInfo for %s - BotServ RDB save failed.", bi->nick);
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (rdb_clean_table("anope_bs_core") == 0) {
|
||||
if (rdb_clean_table("anope_bs_core") == 0)
|
||||
alog("Unable to clean table 'anope_bs_core' - BotServ RDB save failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
rdb_close();
|
||||
#endif
|
||||
|
||||
+15
-3
@@ -998,30 +998,37 @@ void save_cs_rdb_dbase(void)
|
||||
|
||||
if (rdb_tag_table("anope_cs_info") == 0) {
|
||||
alog("Unable to tag table 'anope_cs_info' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_cs_access") == 0) {
|
||||
alog("Unable to tag table 'anope_cs_access' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_cs_levels") == 0) {
|
||||
alog("Unable to tag table 'anope_cs_levels' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_cs_akicks") == 0) {
|
||||
alog("Unable to tag table 'anope_cs_akicks' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_cs_badwords") == 0) {
|
||||
alog("Unable to tag table 'anope_cs_badwords' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_cs_ttb") == 0) {
|
||||
alog("Unable to tag table 'anope_cs_ttb' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table_where("anope_ms_info", "serv='CHAN'") == 0) {
|
||||
alog("Unable to tag table 'anope_ms_info' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1029,6 +1036,7 @@ void save_cs_rdb_dbase(void)
|
||||
for (ci = chanlists[i]; ci; ci = ci->next) {
|
||||
if (rdb_save_cs_info(ci) == 0) {
|
||||
alog("Unable to save ChanInfo for %s - ChanServ RDB save failed.", ci->name);
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
} /* for (chanlists[i]) */
|
||||
@@ -1036,32 +1044,36 @@ void save_cs_rdb_dbase(void)
|
||||
|
||||
if (rdb_clean_table("anope_cs_info") == 0) {
|
||||
alog("Unable to clean table 'anope_cs_info' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_cs_access") == 0) {
|
||||
alog("Unable to clean table 'anope_cs_access' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_cs_levels") == 0) {
|
||||
alog("Unable to clean table 'anope_cs_levels' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_cs_akicks") == 0) {
|
||||
alog("Unable to clean table 'anope_cs_akicks' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_cs_badwords") == 0) {
|
||||
alog("Unable to clean table 'anope_cs_badwords' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_cs_ttb") == 0) {
|
||||
alog("Unable to clean table 'anope_cs_ttb' - ChanServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table_where("anope_ms_info", "serv='CHAN'") == 0) {
|
||||
if (rdb_clean_table_where("anope_ms_info", "serv='CHAN'") == 0)
|
||||
alog("Unable to clean table 'anope_ms_info' - ChanServ RDB save failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
rdb_close();
|
||||
#endif
|
||||
|
||||
+3
-3
@@ -509,6 +509,7 @@ void save_hs_rdb_dbase(void)
|
||||
|
||||
if (rdb_tag_table("anope_hs_core") == 0) {
|
||||
alog("Unable to tag table 'anope_hs_core' - HostServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -516,15 +517,14 @@ void save_hs_rdb_dbase(void)
|
||||
while (current != NULL) {
|
||||
if (rdb_save_hs_core(current) == 0) {
|
||||
alog("Unable to save HostCore for %s - HostServ RDB save failed.", current->nick);
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
current = current->next;
|
||||
}
|
||||
|
||||
if (rdb_clean_table("anope_hs_core") == 0) {
|
||||
if (rdb_clean_table("anope_hs_core") == 0)
|
||||
alog("Unable to clean table 'anope_hs_core' - HostServ RDB save failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
rdb_close();
|
||||
#endif
|
||||
|
||||
+13
-6
@@ -860,18 +860,22 @@ void save_ns_rdb_dbase(void)
|
||||
|
||||
if (rdb_tag_table("anope_ns_core") == 0) {
|
||||
alog("Unable to tag 'anope_ns_core' - NickServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_ns_alias") == 0) {
|
||||
alog("Unable to tag 'anope_ns_alias' - NickServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_ns_access") == 0) {
|
||||
alog("Unable to tag 'anope_ns_access' - NickServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table_where("anope_ms_info", "serv='NICK'") == 0) {
|
||||
alog("Unable to tag 'anope_ms_info' - NickServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -879,6 +883,7 @@ void save_ns_rdb_dbase(void)
|
||||
for (nc = nclists[i]; nc; nc = nc->next) {
|
||||
if (rdb_save_ns_core(nc) == 0) {
|
||||
alog("Unable to save NickCore for '%s' - NickServ RDB save failed.", nc->display);
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
} /* for (nc) */
|
||||
@@ -888,6 +893,7 @@ void save_ns_rdb_dbase(void)
|
||||
for (na = nalists[i]; na; na = na->next) {
|
||||
if (rdb_save_ns_alias(na) == 0) {
|
||||
alog("Unable to save NickAlias for '%s' - NickServ RDB save failed.", na->nick);
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
} /* for (na) */
|
||||
@@ -895,20 +901,21 @@ void save_ns_rdb_dbase(void)
|
||||
|
||||
if (rdb_clean_table("anope_ns_core") == 0) {
|
||||
alog("Unable to clean table 'anope_ns_core' - NickServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_ns_alias") == 0) {
|
||||
alog("Unable to clean table 'anope_ns_alias' - NickServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_ns_access") == 0) {
|
||||
alog("Unable to clean table 'anope_ns_access' - NickServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table_where("anope_ms_info", "serv='NICK'") == 0) {
|
||||
if (rdb_clean_table_where("anope_ms_info", "serv='NICK'") == 0)
|
||||
alog("Unable to clean table 'anope_ms_info' - NickServ RDB save failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
rdb_close();
|
||||
#endif
|
||||
@@ -925,6 +932,7 @@ void save_ns_req_rdb_dbase(void)
|
||||
|
||||
if (rdb_tag_table("anope_ns_request") == 0) {
|
||||
alog("Unable to tag table 'anope_ns_request' - NickServ Request RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -933,15 +941,14 @@ void save_ns_req_rdb_dbase(void)
|
||||
if (rdb_save_ns_req(nr) == 0) {
|
||||
/* Something went wrong - abort saving */
|
||||
alog("Unable to save NickRequest (nick '%s') - NickServ Request RDB save failed.", nr->nick);
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (rdb_clean_table("anope_ns_request") == 0) {
|
||||
if (rdb_clean_table("anope_ns_request") == 0)
|
||||
alog("Unable to clean table 'anope_ns_request' - NickServ Request RDB save failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
rdb_close();
|
||||
#endif
|
||||
|
||||
+10
-3
@@ -505,23 +505,28 @@ void save_os_rdb_dbase(void)
|
||||
|
||||
if (rdb_tag_table("anope_os_akills") == 0) {
|
||||
alog("Unable to tag table 'anope_os_akills' - OperServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_os_sglines") == 0) {
|
||||
alog("Unable to tag table 'anope_os_sglines' - OperServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_os_sqlines") == 0) {
|
||||
alog("Unable to tag table 'anope_os_sqlines' - OperServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_tag_table("anope_os_szlines") == 0) {
|
||||
alog("Unable to tag table 'anope_os_szlines' - OperServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
/* We empty anope_os_core as required */
|
||||
if (rdb_empty_table("anope_os_core") == 0) {
|
||||
alog("Unable to empty table 'anope_os_core' - OperServ RDB save failed");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -529,25 +534,27 @@ void save_os_rdb_dbase(void)
|
||||
(maxusercnt, maxusertime, &akills, &sglines, &sqlines,
|
||||
&szlines) == 0) {
|
||||
alog("Unable to save OperServ data - OperServ RDB save failed");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
|
||||
if (rdb_clean_table("anope_os_akills") == 0) {
|
||||
alog("Unable to clean table 'anope_os_akills' - OperServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_os_sglines") == 0) {
|
||||
alog("Unable to clean table 'anope_os_sglines' - OperServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_os_sqlines") == 0) {
|
||||
alog("Unable to clean table 'anope_os_sqlines' - OperServ RDB save failed.");
|
||||
rdb_close();
|
||||
return;
|
||||
}
|
||||
if (rdb_clean_table("anope_os_szlines") == 0) {
|
||||
if (rdb_clean_table("anope_os_szlines") == 0)
|
||||
alog("Unable to clean table 'anope_os_szlines' - OperServ RDB save failed.");
|
||||
return;
|
||||
}
|
||||
|
||||
rdb_close();
|
||||
#endif
|
||||
|
||||
+5
-1
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="21"
|
||||
VERSION_EXTRA="-svn"
|
||||
VERSION_BUILD="1384"
|
||||
VERSION_BUILD="1385"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.21 (1385)
|
||||
# BUGS : 862
|
||||
# NOTES : rdb_close() where rdb_open() is used in rdb_dbase() functions.
|
||||
#
|
||||
# BUILD : 1.7.21 (1384)
|
||||
# BUGS : 870
|
||||
# NOTES : Fixed segfault introduced y me trying to fix 870.
|
||||
|
||||
Reference in New Issue
Block a user