0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

rename method for easy grepping

This commit is contained in:
dwight 2010-12-21 09:56:36 -05:00
parent 24ed065ef0
commit e45adc40ae
2 changed files with 5 additions and 3 deletions

View File

@ -38,7 +38,7 @@ namespace mongo {
_ops.clear();
}
void Writes::insert(WriteIntent& wi){
void Writes::insertWriteIntent(WriteIntent& wi){
if (_writes.empty()){
_writes.insert(wi);
return;

View File

@ -102,7 +102,9 @@ namespace mongo {
/** reset the Writes structure (empties all the above) */
void clear();
void insert(WriteIntent& wi); // merges into set
/** merges into set */
void insertWriteIntent(WriteIntent& wi);
#ifdef _DEBUG
WriteIntent _last;
@ -215,7 +217,7 @@ namespace mongo {
#endif
// remember intent. we will journal it in a bit
_wi.insert(w);
_wi.insertWriteIntent(w);
_bytes += w.len;
wassert( _wi._writes.size() < 2000000 );
assert( _wi._writes.size() < 20000000 );