summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbmessage.h
diff options
context:
space:
mode:
authorGreg Studer <greg@10gen.com>2012-10-16 11:18:54 -0400
committerGreg Studer <greg@10gen.com>2012-10-24 15:59:19 -0400
commit5b3faedafb53cfe7df1464442d67f7aea6d9a9a1 (patch)
tree58fa2807802a840946a4f87b244f414f73deecad /src/mongo/db/dbmessage.h
parentac8d2de4e03aea342a281104949263eb4a5dc34a (diff)
downloadmongo-5b3faedafb53cfe7df1464442d67f7aea6d9a9a1.tar.gz
SERVER-6802 preserve correct continue-on-error semantics for mongos bulk inserts
Also divides batches into sizes manageable by the WBL
Diffstat (limited to 'src/mongo/db/dbmessage.h')
-rw-r--r--src/mongo/db/dbmessage.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mongo/db/dbmessage.h b/src/mongo/db/dbmessage.h
index aedd8f50a91..7b0a802a27f 100644
--- a/src/mongo/db/dbmessage.h
+++ b/src/mongo/db/dbmessage.h
@@ -212,13 +212,18 @@ namespace mongo {
const Message& msg() const { return m; }
+ const char * markGet() {
+ return nextjsobj;
+ }
+
void markSet() {
mark = nextjsobj;
}
- void markReset() {
- verify( mark );
- nextjsobj = mark;
+ void markReset( const char * toMark = 0) {
+ if( toMark == 0 ) toMark = mark;
+ verify( toMark );
+ nextjsobj = toMark;
}
private: