/*
* Copyright (C) 2012 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,
* 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 .
*/
#include
#include "mongo/base/init.h"
#include "mongo/db/auth/action_set.h"
#include "mongo/db/auth/action_type.h"
#include "mongo/db/auth/privilege.h"
#include "mongo/db/commands.h"
#include "mongo/util/fail_point_service.h"
namespace mongo {
/**
* Command for modifying installed fail points.
*
* Format
* {
* configureFailPoint: , // name of the fail point.
* mode: , // the new mode to set. Can have one of the
* following format:
*
* 1. 'off' - disable fail point.
* 2. 'alwaysOn' - fail point is always active.
* 3. { period: } - n should be within the range of a 32 bit signed
* integer and this would be the approximate period for every activation.
* For example, for { period: 120 }, the probability of the fail point to
* be activated is 1 in 120. NOT YET SUPPORTED.
* 4. { times: } - n should be positive and within the range of a 32 bit
* signed integer and this is the number of passes on the fail point will
* remain activated.
*
* data: