diff options
author | dwight <dwight@10gen.com> | 2010-07-23 23:26:27 -0400 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2010-07-23 23:26:27 -0400 |
commit | 401872b5930b8295d600b6f7661f2773d9c1e1a6 (patch) | |
tree | 57a9278c2419f11d18da5c9f7c98018b538339f0 | |
parent | fe16a597ad891e5ee7240fa92203693eb0db7d16 (diff) | |
download | mongo-401872b5930b8295d600b6f7661f2773d9c1e1a6.tar.gz |
shutdown niceness
-rw-r--r-- | db/db.vcxproj | 1 | ||||
-rwxr-xr-x | db/db.vcxproj.filters | 3 | ||||
-rw-r--r-- | util/concurrency/task.cpp | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/db/db.vcxproj b/db/db.vcxproj index 889de130304..9521c55eecc 100644 --- a/db/db.vcxproj +++ b/db/db.vcxproj @@ -450,6 +450,7 @@ <ClCompile Include="..\util\stringutils.cpp" />
<ClCompile Include="..\util\text.cpp" />
<ClCompile Include="..\util\version.cpp" />
+ <ClCompile Include="cap.cpp" />
<ClCompile Include="dbcommands_generic.cpp" />
<ClCompile Include="geo\2d.cpp" />
<ClCompile Include="geo\haystack.cpp" />
diff --git a/db/db.vcxproj.filters b/db/db.vcxproj.filters index 702bba53aec..7e0e5d8ded2 100755 --- a/db/db.vcxproj.filters +++ b/db/db.vcxproj.filters @@ -388,6 +388,9 @@ <ClCompile Include="geo\haystack.cpp">
<Filter>db\geo</Filter>
</ClCompile>
+ <ClCompile Include="cap.cpp">
+ <Filter>db\core</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="repl\rs_config.h">
diff --git a/util/concurrency/task.cpp b/util/concurrency/task.cpp index 25d496a1e13..3806f652f6b 100644 --- a/util/concurrency/task.cpp +++ b/util/concurrency/task.cpp @@ -52,6 +52,8 @@ namespace mongo { if( repeat == 0 ) break; sleepmillis(repeat); + if( inShutdown() ) + break; } } |