summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-12-24 13:43:06 -0500
committerEliot Horowitz <eliot@10gen.com>2010-12-24 13:43:06 -0500
commit1794b2fe343a7a3bff305cfc8799ec670f40c82f (patch)
tree6063041ec244fff0f78f8e8234cd005c97b3b975 /dbtests
parent19b8c2be8ac44b717e1c7adb8083bd5d744d5683 (diff)
downloadmongo-1794b2fe343a7a3bff305cfc8799ec670f40c82f.tar.gz
move some extent methods into Extent class
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/pdfiletests.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/dbtests/pdfiletests.cpp b/dbtests/pdfiletests.cpp
index 2dc6d891daf..ae7fc11234a 100644
--- a/dbtests/pdfiletests.cpp
+++ b/dbtests/pdfiletests.cpp
@@ -25,12 +25,6 @@
#include "dbtests.h"
-namespace mongo {
- // here because we don't nesc. want to expose yet
- int initialExtentSize(int len);
- int followupExtentSize(int len, int lastExtentLen);
-}
-
namespace PdfileTests {
namespace ScanCapped {
@@ -327,9 +321,9 @@ namespace PdfileTests {
SmallFilesControl c;
// test that no matter what we start with, we always get to max extent size
for ( int obj=16; obj<BSONObjMaxUserSize; obj *= 1.3 ){
- int sz = initialExtentSize( obj );
+ int sz = Extent::initialSize( obj );
for ( int i=0; i<100; i++ ){
- sz = followupExtentSize( obj , sz );
+ sz = Extent::followupSize( obj , sz );
}
ASSERT_EQUALS( Extent::maxSize() , sz );
}