diff options
author | Shaun Verch <shaun.verch@10gen.com> | 2013-11-01 16:12:52 -0400 |
---|---|---|
committer | Shaun Verch <shaun.verch@10gen.com> | 2013-11-04 17:25:41 -0500 |
commit | d1f06420857ea4a3ed5b6f8ffd0304398cffa3cb (patch) | |
tree | 58acc45335ea7c51d840545685b54b8a8268228a /src/mongo/db/server_options.cpp | |
parent | 44680ab9835615856f144e9f027d91ef5b16682d (diff) | |
download | mongo-d1f06420857ea4a3ed5b6f8ffd0304398cffa3cb.tar.gz |
SERVER-11538: Create mongoclient library to avoid pulling in mongocommon
Diffstat (limited to 'src/mongo/db/server_options.cpp')
-rw-r--r-- | src/mongo/db/server_options.cpp | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/src/mongo/db/server_options.cpp b/src/mongo/db/server_options.cpp index a16bc1652f2..5ded399409c 100644 --- a/src/mongo/db/server_options.cpp +++ b/src/mongo/db/server_options.cpp @@ -1,35 +1,28 @@ -/* - * Copyright (C) 2013 10gen Inc. +/* Copyright 2013 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. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * 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. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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/>. - * - * As a special exception, the copyright holders give permission to link the - * code of portions of this program with the OpenSSL library under certain - * conditions as described in each individual source file and distribute - * linked combinations including the program with the OpenSSL library. You - * must comply with the GNU Affero General Public License in all respects for - * all of the code used other than as permitted herein. If you modify file(s) - * with this exception, you may extend this exception to your version of the - * file(s), but you are not obligated to do so. If you do not wish to do so, - * delete this exception statement from your version. If you delete this - * exception statement from all source files in the program, then also delete - * it in the license file. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "mongo/db/server_options.h" namespace mongo { + /** + * This struct represents global configuration data for the server. These options get set from + * the command line and are used inline in the code. Note that much shared code uses this + * struct, which is why it is here in its own file rather than in the same file as the code that + * sets it via the command line, which would pull in more dependencies. + */ ServerGlobalParams serverGlobalParams; } // namespace mongo |