summaryrefslogtreecommitdiff
path: root/db/query.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-07-26 14:28:48 -0400
committerDwight <dmerriman@gmail.com>2008-07-26 14:28:48 -0400
commit3fbf00615f92dfa37b48b7f0f97b561c97874929 (patch)
tree113735b51efad3db3690a8cd96daa856c375b133 /db/query.h
parent61621194a37dfd1a10f9af4af3d26c2abb4b9715 (diff)
parent1a5d90cc9d0c3c42dd5396e7ecdaae1d7c22d293 (diff)
downloadmongo-r0.0.9_rc1.tar.gz
Merge branch 'master' of ssh://git.10gen.com/data/gitroot/pr0.0.9_rc1
Diffstat (limited to 'db/query.h')
-rw-r--r--db/query.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/db/query.h b/db/query.h
index aa06fa04105..562a2ee4e39 100644
--- a/db/query.h
+++ b/db/query.h
@@ -1,5 +1,21 @@
// query.h
+/**
+* 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/>.
+*/
+
#pragma once
#include "../stdafx.h"
@@ -73,7 +89,6 @@ QueryResult* runQuery(Message&, const char *ns, int ntoskip, int ntoreturn,
stringstream&);
void updateObjects(const char *ns, JSObj updateobj, JSObj pattern, bool upsert, stringstream& ss);
-void deleteObjects(const char *ns, JSObj pattern, bool justOne);
+int deleteObjects(const char *ns, JSObj pattern, bool justOne, bool god=false);
#include "clientcursor.h"
-