0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
This commit is contained in:
Dwight 2010-09-30 11:58:26 -04:00
parent 1d25159679
commit e69d6d51dd
3 changed files with 0 additions and 8 deletions

View File

@ -232,7 +232,6 @@ namespace mongo {
the keynodes grow from the front.
*/
inline int BucketBasics::_alloc(int bytes) {
dur::assertWriting(this);
topSize += bytes;
emptySize -= bytes;
int ofs = totalDataSize() - topSize;

View File

@ -19,11 +19,6 @@ namespace mongo {
assert( MemoryMappedFile::getWriteViewFor(p) !=
p );
}
void assertWriting(void *p) {
// todo:
//assert( MemoryMappedFile::getWriteViewFor(p) ==
// p );
}
#endif

View File

@ -22,7 +22,6 @@ namespace mongo {
inline int& writingInt(int& d) { return d; }
template <typename T> inline T* writing(T *x) { return x; }
inline void assertReading(void *p) { }
inline void assertWriting(void *p) { }
template <typename T> inline T* writingNoLog(T *x) { return x; }
@ -57,7 +56,6 @@ namespace mongo {
}
void assertReading(void *p);
void assertWriting(void *p);
/** declare our intent to write, but it doesn't have to be journaled, as this write is
something 'unimportant'.