Files
mongo/db/repl/manager.cpp
Dwight 93a3b8ae71 rs
2010-05-11 15:58:44 -04:00

39 lines
1006 B
C++

/* @file manager.cpp
*/
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,b
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "pch.h"
#include "replset.h"
namespace mongo {
enum {
NOPRIMARY = -2,
SELFPRIMARY = -1
};
ReplSet::Manager::Manager(ReplSet *rs) : _rs(rs), _primary(NOPRIMARY)
{
}
void ReplSet::Manager::checkNewState() {
log() << "checkNewState " << rsLog;
}
}