diff options
author | Kristina <kristina@10gen.com> | 2011-10-24 18:18:52 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-10-25 00:02:58 -0400 |
commit | de05cdff5373ff6d179e16320b39ff41ee55f185 (patch) | |
tree | 6583d7fe9d5c54b430a7032db50c0a5c147718fa /db | |
parent | db49a5ce19d595dac41900551781406c82e99ebe (diff) | |
download | mongo-de05cdff5373ff6d179e16320b39ff41ee55f185.tar.gz |
Set auth hook in final MR step, if it wasn't set previously SERVER-4114
Diffstat (limited to 'db')
-rw-r--r-- | db/commands/mr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/commands/mr.cpp b/db/commands/mr.cpp index 56e9770dff2..b79e62b3381 100644 --- a/db/commands/mr.cpp +++ b/db/commands/mr.cpp @@ -1119,6 +1119,7 @@ namespace mongo { virtual LockType locktype() const { return NONE; } bool run(const string& dbname , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool) { + ShardedConnectionInfo::addHook(); string shardedOutputCollection = cmdObj["shardedOutputCollection"].valuestrsafe(); string postProcessCollection = cmdObj["postProcessCollection"].valuestrsafe(); bool postProcessOnly = !(postProcessCollection.empty()); |