bug fixed : remove abondanded failed warnnings

This commit is contained in:
wenshao
2011-12-08 12:36:15 +08:00
parent a92d21cfab
commit 187f0ea5ed
6 changed files with 30 additions and 15 deletions
@@ -93,9 +93,13 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
public synchronized static void remove(DruidDataSource dataSource) {
ObjectName objectName = dataSources.remove(dataSource);
if (objectName == null) {
objectName = dataSource.getObjectName();
}
if (objectName == null) {
LOG.error("unregister mbean failed.");
LOG.error("unregister mbean failed. url " + dataSource.getUrl());
return;
}