diff options
author | agirbal <antoine@10gen.com> | 2011-10-13 12:51:05 -0700 |
---|---|---|
committer | agirbal <antoine@10gen.com> | 2011-10-13 12:51:43 -0700 |
commit | 9b12a1c446fc4c21bd833e6b3b1a34d2c15af5bd (patch) | |
tree | d83cc2f8a96eacc3307a2b96bf854336bc17a2f4 /shell | |
parent | a0407a42bfa57322feebd7286bd168233e5c699d (diff) | |
download | mongo-9b12a1c446fc4c21bd833e6b3b1a34d2c15af5bd.tar.gz |
- SERVER-4068: v8 build sometimes fails sharding/auto2.js, may be due to GC
Diffstat (limited to 'shell')
-rw-r--r-- | shell/mongo_vstudio.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/mongo_vstudio.cpp b/shell/mongo_vstudio.cpp index b4fb64b93e2..de849150686 100644 --- a/shell/mongo_vstudio.cpp +++ b/shell/mongo_vstudio.cpp @@ -1067,7 +1067,9 @@ const StringData _jscode_raw_utils = "\n" "shellPrintHelper = function (x) {\n" "if (typeof (x) == \"undefined\") {\n" -"if (__callLastError) {\n" +"// Make sure that we have a db var before we use it\n" +"// TODO: This implicit calling of GLE can cause subtle, hard to track issues - remove?\n" +"if (__callLastError && typeof( db ) != \"undefined\" && db.getMongo ) {\n" "__callLastError = false;\n" "// explicit w:1 so that replset getLastErrorDefaults aren't used here which would be bad.\n" "var err = db.getLastError(1);\n" |