diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-04-20 18:51:35 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-23 15:59:58 -0400 |
commit | c952a9396a1843aa45d6afa3c6785dec607de112 (patch) | |
tree | 8c7ba745afa4d24d7bc7c998aec713c8384bacb2 /src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp | |
parent | 57232d88b869b0741d95998f8ed09a96b2e7a1bc (diff) | |
download | mongo-c952a9396a1843aa45d6afa3c6785dec607de112.tar.gz |
SERVER-18131 Clean up LastError.
Makes LastError a decoration on Client. Removes behavior that was specific to
the dbKillCursors wire protocol message into the processing for that message,
and out of last error. Simplifies lifetime of LastError. It always exists on
Clients, so there's no checking for its existence, and no passing it around
through parts of the networking library.
Diffstat (limited to 'src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp b/src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp index bacb5da705e..0164fe3cc15 100644 --- a/src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp +++ b/src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp @@ -72,7 +72,7 @@ namespace { BSONObjBuilder& result) { if (cmdObj["forShell"].trueValue()) { - lastError.disableForCommand(); + LastError::get(cc()).disable(); ClusterLastErrorInfo::get(cc()).disableForCommand(); } |