@@ -1416,7 +1416,7 @@ namespace NamespaceTests {
14161416 public:
14171417 void run () {
14181418 create ();
1419- DiskLoc actualLocation = nsd ()->alloc ( ns (), 300 );
1419+ DiskLoc actualLocation = nsd ()->alloc ( NULL , ns (), 300 );
14201420
14211421 // The length of the allocated record is quantized.
14221422 ASSERT_EQUALS ( 320 , actualLocation.rec ()->lengthWithHeaders () );
@@ -1430,7 +1430,7 @@ namespace NamespaceTests {
14301430 void run () {
14311431 create ();
14321432 ASSERT ( !nsd ()->isUserFlagSet ( NamespaceDetails::Flag_UsePowerOf2Sizes ) );
1433- DiskLoc loc = nsd ()->alloc ( ns (), 300 );
1433+ DiskLoc loc = nsd ()->alloc ( collection (), ns (), 300 );
14341434 ASSERT_EQUALS ( 300 , loc.rec ()->lengthWithHeaders () );
14351435 }
14361436 virtual string spec () const { return " {capped:true,size:2048}" ; }
@@ -1452,7 +1452,7 @@ namespace NamespaceTests {
14521452 NamespaceDetails* indexNsd = nsdetails ( indexNamespace );
14531453
14541454 // Check that no quantization is performed.
1455- DiskLoc actualLocation = indexNsd->alloc ( indexNamespace.c_str (), 300 );
1455+ DiskLoc actualLocation = indexNsd->alloc ( NULL , indexNamespace.c_str (), 300 );
14561456 ASSERT_EQUALS ( 300 , actualLocation.rec ()->lengthWithHeaders () );
14571457 }
14581458 };
@@ -1470,7 +1470,7 @@ namespace NamespaceTests {
14701470 NamespaceDetails* indexNsd = nsdetails ( indexNamespace.c_str () );
14711471
14721472 // Check that multiple of 4 quantization is performed.
1473- DiskLoc actualLocation = indexNsd->alloc ( indexNamespace.c_str (), 298 );
1473+ DiskLoc actualLocation = indexNsd->alloc ( NULL , indexNamespace.c_str (), 298 );
14741474 ASSERT_EQUALS ( 300 , actualLocation.rec ()->lengthWithHeaders () );
14751475 }
14761476 };
@@ -1481,7 +1481,7 @@ namespace NamespaceTests {
14811481 void run () {
14821482 create ();
14831483 cookDeletedList ( 310 );
1484- DiskLoc actualLocation = nsd ()->alloc ( ns (), 300 );
1484+ DiskLoc actualLocation = nsd ()->alloc ( NULL , ns (), 300 );
14851485 ASSERT_EQUALS ( 310 , actualLocation.rec ()->lengthWithHeaders () );
14861486
14871487 // No deleted records remain after alloc returns the non quantized record.
@@ -1496,7 +1496,7 @@ namespace NamespaceTests {
14961496 void run () {
14971497 create ();
14981498 cookDeletedList ( 300 );
1499- DiskLoc actualLocation = nsd ()->alloc ( ns (), 300 );
1499+ DiskLoc actualLocation = nsd ()->alloc ( NULL , ns (), 300 );
15001500 ASSERT_EQUALS ( 300 , actualLocation.rec ()->lengthWithHeaders () );
15011501 ASSERT_EQUALS ( DiskLoc (), smallestDeletedRecord () );
15021502 }
@@ -1512,7 +1512,7 @@ namespace NamespaceTests {
15121512 void run () {
15131513 create ();
15141514 cookDeletedList ( 343 );
1515- DiskLoc actualLocation = nsd ()->alloc ( ns (), 300 );
1515+ DiskLoc actualLocation = nsd ()->alloc ( NULL , ns (), 300 );
15161516 ASSERT_EQUALS ( 343 , actualLocation.rec ()->lengthWithHeaders () );
15171517 ASSERT_EQUALS ( DiskLoc (), smallestDeletedRecord () );
15181518 }
@@ -1528,7 +1528,7 @@ namespace NamespaceTests {
15281528 void run () {
15291529 create ();
15301530 cookDeletedList ( 344 );
1531- DiskLoc actualLocation = nsd ()->alloc ( ns (), 300 );
1531+ DiskLoc actualLocation = nsd ()->alloc ( NULL , ns (), 300 );
15321532
15331533 // The returned record is quantized from 300 to 320.
15341534 ASSERT_EQUALS ( 320 , actualLocation.rec ()->lengthWithHeaders () );
@@ -1548,7 +1548,7 @@ namespace NamespaceTests {
15481548 void run () {
15491549 create ();
15501550 cookDeletedList ( 344 );
1551- DiskLoc actualLocation = nsd ()->alloc ( ns (), 319 );
1551+ DiskLoc actualLocation = nsd ()->alloc ( NULL , ns (), 319 );
15521552
15531553 // Even though 319 would be quantized to 320 and 344 - 320 == 24 could become a new
15541554 // deleted record, the entire deleted record is returned because
@@ -1566,7 +1566,7 @@ namespace NamespaceTests {
15661566 create ();
15671567 cookDeletedList ( 299 );
15681568
1569- ASSERT ( nsd ()->alloc ( ns (), 300 ).isNull () );
1569+ ASSERT ( nsd ()->alloc ( NULL , ns (), 300 ).isNull () );
15701570 }
15711571 virtual string spec () const { return " " ; }
15721572 };
0 commit comments