From 592060ac756dd7ac5983aac987264ff5eaecd265 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 4 Oct 2010 18:57:54 -0400 Subject: Attempt to write back the old mlock to the databases if we try and fail to connect to the uplink. Because we may not know modes until after we are synced we could accidentally nuke all of the mlocks --- src/regchannel.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 9bb79b8cc..053f75d5b 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -387,8 +387,13 @@ void ChannelInfo::LoadMLock() this->SetMLock(cm->Name, true, it->second); } } + } + this->Shrink("db_mlock_modes_on"); + this->Shrink("db_mlock_modes_off"); + this->Shrink("db_mlp"); + /* Create perm channel */ if (this->HasFlag(CI_PERSIST) && !this->c) { -- cgit