diff options
author | Eliot Horowitz <eliot@10gen.com> | 2008-09-15 09:50:45 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2008-09-15 09:50:45 -0400 |
commit | 0627621e0076a3ced12aa02554d023fc84cac509 (patch) | |
tree | 212221d9bb585fe8220e2739c95dc54a4eca413f | |
parent | 0eb21f59f9632c053714b9f059e332f530d3bf47 (diff) | |
parent | f9fd02c198553a587cffbcb4a61d774d93998b38 (diff) | |
download | mongo-0627621e0076a3ced12aa02554d023fc84cac509.tar.gz |
Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
-rw-r--r-- | dbgrid/database.cpp | 26 | ||||
-rw-r--r-- | dbgrid/database.h | 10 | ||||
-rw-r--r-- | dbgrid/request.cpp | 23 |
3 files changed, 59 insertions, 0 deletions
diff --git a/dbgrid/database.cpp b/dbgrid/database.cpp new file mode 100644 index 00000000000..42259c0cd66 --- /dev/null +++ b/dbgrid/database.cpp @@ -0,0 +1,26 @@ +// database.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, +* 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 "stdafx.h" +#include "database.h" +#include "../db/dbclient.h" + +boost::mutex Database::mutex; + +void Database::load() { +} diff --git a/dbgrid/database.h b/dbgrid/database.h new file mode 100644 index 00000000000..85492ba3c71 --- /dev/null +++ b/dbgrid/database.h @@ -0,0 +1,10 @@ +// database.h
+
+/* we create a database object for each client database
+*/
+class Database {
+ static boost::mutex mutex;
+public:
+ /* load list of databases from the grid db. */
+ static void load();
+};
diff --git a/dbgrid/request.cpp b/dbgrid/request.cpp new file mode 100644 index 00000000000..cd1b7bc8580 --- /dev/null +++ b/dbgrid/request.cpp @@ -0,0 +1,23 @@ +// request.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, +* 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 "stdafx.h" +#include "../grid/message.h" +
+void processRequest(Message& m, MessagingPort& p) {
+}
|