diff options
author | Aaron <aaron@10gen.com> | 2011-01-03 11:20:27 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2011-01-03 11:23:53 -0800 |
commit | 49b45410c0ce3dc22a262f011c5ff3fd42db4b00 (patch) | |
tree | 2f610e78c7d2ef64dcd5dfd2cfe0102e727039ff /db/dur.h | |
parent | b99c10320e1fcb28e36167ed0022fcbf55e02cbf (diff) | |
download | mongo-49b45410c0ce3dc22a262f011c5ff3fd42db4b00.tar.gz |
make intentionally unimplemented dur writing methods private
Diffstat (limited to 'db/dur.h')
-rw-r--r-- | db/dur.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -120,16 +120,6 @@ namespace mongo { return (T*) writingPtr(x, sizeof(T)); } - /** Intentionally unimplemented method. - It's very easy to manipulate Record::data open ended. Thus a call to writing(Record*) is suspect. - This will override the templated version and yield an unresolved external. - */ - Record* writing(Record* r); - /** Intentionally unimplemented method. BtreeBuckets are allocated in buffers larger than sizeof( BtreeBucket ). */ - BtreeBucket* writing( BtreeBucket* ); - /** Intentionally unimplemented method. NamespaceDetails may be based on references to 'Extra' objects. */ - NamespaceDetails* writing( NamespaceDetails* ); - /** write something that doesn't have to be journaled, as this write is "unimportant". a good example is paddingFactor. can be thought of as memcpy(dst,src,len) @@ -144,6 +134,16 @@ namespace mongo { static DurableInterface& getDur() { return *_impl; } private: + /** Intentionally unimplemented method. + It's very easy to manipulate Record::data open ended. Thus a call to writing(Record*) is suspect. + This will override the templated version and yield an unresolved external. + */ + Record* writing(Record* r); + /** Intentionally unimplemented method. BtreeBuckets are allocated in buffers larger than sizeof( BtreeBucket ). */ + BtreeBucket* writing( BtreeBucket* ); + /** Intentionally unimplemented method. NamespaceDetails may be based on references to 'Extra' objects. */ + NamespaceDetails* writing( NamespaceDetails* ); + static DurableInterface* _impl; // NonDurableImpl at startup() static void enableDurability(); // makes _impl a DurableImpl static void disableDurability(); // makes _impl a NonDurableImpl |