diff options
author | Dwight <dmerriman@gmail.com> | 2008-09-15 09:14:42 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-09-15 09:14:42 -0400 |
commit | 75418800a25dd351c0223ff5fa3ea3679bd0585b (patch) | |
tree | d494ff0088a6e831ff4a97c74c2852cb3d71d8fb | |
parent | 3332989338a5815c30a039213bf2e4581759e8c8 (diff) | |
download | mongo-75418800a25dd351c0223ff5fa3ea3679bd0585b.tar.gz |
dbgrid new files
-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) {
+}
|