| 1206 | } |
| 1207 | |
| 1208 | void LuaState::updateFakeClient() { |
| 1209 | if (_fakeSess == nullptr) { |
| 1210 | _fakeSess = std::make_unique<LocalSessionGuard>(_svr.get()); |
| 1211 | _fakeSess->getSession()->setInLua(true); |
| 1212 | } |
| 1213 | if (!_fakeSess->getSession()->getCtx()->authed() && |
| 1214 | _sess->getCtx()->authed()) { |
| 1215 | _fakeSess->getSession()->getCtx()->setAuthed(); |
| 1216 | } |
| 1217 | if (_fakeSess->getSession()->getCtx()->getDbId() != |
| 1218 | _sess->getCtx()->getDbId()) { |
| 1219 | _fakeSess->getSession()->getCtx()->setDbId(_sess->getCtx()->getDbId()); |
| 1220 | } |
| 1221 | } |
| 1222 | |
| 1223 | } // namespace tendisplus |
no test coverage detected