Permalink
Browse files

SERVER-12786: missing () on call

  • Loading branch information...
scotthernandez committed Feb 26, 2014
1 parent c5ce70c commit 2f2bdc60421fc7459c32c11ca88a3f71bebf3fd3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mongo/shell/utils.js
View
@@ -605,7 +605,7 @@ shellPrintHelper = function (x) {
// TODO: This implicit calling of GLE can cause subtle, hard to track issues - remove?
if (__callLastError && typeof( db ) != "undefined" &&
db.getMongo &&
- db.getMongo().writeMode == "legacy") {
+ db.getMongo().writeMode() == "legacy") {
__callLastError = false;
// explicit w:1 so that replset getLastErrorDefaults aren't used here which would be bad

0 comments on commit 2f2bdc6

Please sign in to comment.