mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
cleaning
This commit is contained in:
parent
1d25159679
commit
e69d6d51dd
@ -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;
|
||||
|
@ -19,11 +19,6 @@ namespace mongo {
|
||||
assert( MemoryMappedFile::getWriteViewFor(p) !=
|
||||
p );
|
||||
}
|
||||
void assertWriting(void *p) {
|
||||
// todo:
|
||||
//assert( MemoryMappedFile::getWriteViewFor(p) ==
|
||||
// p );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
2
db/dur.h
2
db/dur.h
@ -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'.
|
||||
|
Loading…
Reference in New Issue
Block a user