📄 relogin.c
字号:
// Copyright (c) 1999-2001 David Muse// See the file COPYING for more information#include <config.h>#include <sqlrconnection.h>#include <rudiments/snooze.h>#include <unistd.h>void sqlrconnection_svr::reLogIn() { markDatabaseUnavailable(); #ifdef SERVER_DEBUG debugPrint("connection",4,"relogging in..."); #endif // attempt to log in over and over, once every 5 seconds closeCursors(false); logOutUpdateStats(); for (;;) { #ifdef SERVER_DEBUG debugPrint("connection",5,"trying..."); #endif if (logInUpdateStats(false)) { if (!initCursors()) { closeCursors(false); logOutUpdateStats(); } else { break; } } snooze::macrosnooze(5); } #ifdef SERVER_DEBUG debugPrint("connection",4,"done relogging in"); #endif markDatabaseAvailable();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -