summaryrefslogtreecommitdiff
path: root/db/pdfile.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-02-03 22:34:51 -0500
committerAaron <aaron@10gen.com>2009-02-03 22:34:51 -0500
commitcf4e99b9ee306355e4687cc563ab2248273f7b75 (patch)
tree400486b06523fa57e7b9582592229cc2615e176a /db/pdfile.h
parent48cfea2b1afd3fcc2ec5d0f423c9d952bae1f71c (diff)
downloadmongo-cf4e99b9ee306355e4687cc563ab2248273f7b75.tar.gz
Log generated id with inserted object, log id as update query in some cases
Diffstat (limited to 'db/pdfile.h')
-rw-r--r--db/pdfile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/pdfile.h b/db/pdfile.h
index 7dc870adcfb..f83523a5b85 100644
--- a/db/pdfile.h
+++ b/db/pdfile.h
@@ -87,6 +87,8 @@ namespace mongo {
const char *ns,
Record *toupdate, const DiskLoc& dl,
const char *buf, int len, stringstream& profiling);
+ // The object o may be updated if modified on insert.
+ DiskLoc insert(const char *ns, BSONObj &o);
DiskLoc insert(const char *ns, const void *buf, int len, bool god = false, const BSONElement &writeId = BSONElement());
void deleteRecord(const char *ns, Record *todelete, const DiskLoc& dl, bool cappedOK = false);
static auto_ptr<Cursor> findAll(const char *ns);