summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/clone_collection.cpp
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-06-13 18:18:20 -0400
committerWaley Chen <waleycz@gmail.com>2016-06-13 18:18:20 -0400
commit710159c9602a6738e6455cfb26bc2d70a0454ae2 (patch)
tree7293a0905a63ac8c0280704578926d7635c6a89c /src/mongo/db/commands/clone_collection.cpp
parent2bf2c9d2d5de6ff8136bfe9ca30346300deadb13 (diff)
downloadmongo-710159c9602a6738e6455cfb26bc2d70a0454ae2.tar.gz
SERVER-23243 Remove time-keeping from listener
Diffstat (limited to 'src/mongo/db/commands/clone_collection.cpp')
-rw-r--r--src/mongo/db/commands/clone_collection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/clone_collection.cpp b/src/mongo/db/commands/clone_collection.cpp
index b8b475b6926..76ef1377673 100644
--- a/src/mongo/db/commands/clone_collection.cpp
+++ b/src/mongo/db/commands/clone_collection.cpp
@@ -122,7 +122,7 @@ public:
{
HostAndPort h(fromhost);
- if (repl::isSelf(h)) {
+ if (repl::isSelf(h, txn->getServiceContext())) {
errmsg = "can't cloneCollection from self";
return false;
}