1
This commit is contained in:
parent
2cd0d756d8
commit
e53cddeed3
@ -373,6 +373,9 @@ namespace f8
|
|||||||
if (!request) {
|
if (!request) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (DBPool::Instance()->on_dberror) {
|
||||||
|
DBPool::Instance()->on_dberror(request->param, errcode, errmsg);
|
||||||
|
}
|
||||||
if (request->on_error) {
|
if (request->on_error) {
|
||||||
request->on_error(request->param, errcode, errmsg);
|
request->on_error(request->param, errcode, errmsg);
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@ namespace f8
|
|||||||
DBPool() {};
|
DBPool() {};
|
||||||
friend class a8::Singleton<DBPool>;
|
friend class a8::Singleton<DBPool>;
|
||||||
|
|
||||||
|
public:
|
||||||
|
AsyncDBOnErrorFunc on_dberror = nullptr;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void Init();
|
void Init();
|
||||||
void UnInit();
|
void UnInit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user