diff options
author | Dwight <dwight@10gen.com> | 2010-12-30 15:34:30 -0500 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2010-12-30 15:34:30 -0500 |
commit | c325d0f44fa323e7942ffa62cd4d91a87f9b2af6 (patch) | |
tree | 9d16709002e49ece3835ed79cff274026689d463 /dbtests | |
parent | 70781110b465c2a770f99c48a4257a2776e7bbfa (diff) | |
download | mongo-c325d0f44fa323e7942ffa62cd4d91a87f9b2af6.tar.gz |
findbypath for MongoFile
Diffstat (limited to 'dbtests')
-rwxr-xr-x | dbtests/mmaptests.cpp | 7 | ||||
-rw-r--r-- | dbtests/test.vcxproj | 1 | ||||
-rwxr-xr-x | dbtests/test.vcxproj.filters | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/dbtests/mmaptests.cpp b/dbtests/mmaptests.cpp index a4deb9b8515..e83bf45d599 100755 --- a/dbtests/mmaptests.cpp +++ b/dbtests/mmaptests.cpp @@ -52,6 +52,13 @@ namespace MMapTests { char *w = (char *) f.view_write(); strcpy(w + 6, "world"); } + MongoFileFinder ff; + ASSERT( ff.findByPath(fn) ); + ASSERT( ff.findByPath("asdf") == 0 ); + } + { + MongoFileFinder ff; + ASSERT( ff.findByPath(fn) == 0 ); } int N = 10000; diff --git a/dbtests/test.vcxproj b/dbtests/test.vcxproj index 571201ddb10..f9d74755cd7 100644 --- a/dbtests/test.vcxproj +++ b/dbtests/test.vcxproj @@ -583,6 +583,7 @@ <ClCompile Include="..\util\concurrency\task.cpp" />
<ClCompile Include="..\util\concurrency\thread_pool.cpp" />
<ClCompile Include="..\util\concurrency\vars.cpp" />
+ <ClCompile Include="..\util\file_allocator.cpp" />
<ClCompile Include="..\util\log.cpp" />
<ClCompile Include="..\util\logfile.cpp" />
<ClCompile Include="..\util\mmap_win.cpp" />
diff --git a/dbtests/test.vcxproj.filters b/dbtests/test.vcxproj.filters index ea0ec85b834..c52f7f64359 100755 --- a/dbtests/test.vcxproj.filters +++ b/dbtests/test.vcxproj.filters @@ -764,6 +764,9 @@ <ClCompile Include="..\db\security_key.cpp">
<Filter>db\cpp</Filter>
</ClCompile>
+ <ClCompile Include="..\util\file_allocator.cpp">
+ <Filter>util\cpp</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="..\SConstruct">
|