From 69bf91f204d7633d469cdadca6ce59dd06f8e324 Mon Sep 17 00:00:00 2001 From: Bhaskar Muppana Date: Thu, 21 Mar 2019 18:59:39 -0700 Subject: [PATCH] Resolves #84: Cursor ID should always be long --- src/ExtCmd.actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExtCmd.actor.cpp b/src/ExtCmd.actor.cpp index 6e1cfb9..57aa9f6 100644 --- a/src/ExtCmd.actor.cpp +++ b/src/ExtCmd.actor.cpp @@ -1314,7 +1314,7 @@ struct ListIndexesCmd { // clang-format off reply->addDocument(BSON( "cursor" << BSON( - "id" << 0 << + "id" << (long long) 0 << "ns" << msg->ns.first + ".$cmd.listIndexes." + msg->ns.second << "firstBatch" << indexList.arr()) << "ok" << 1.0