Aggregate cursor with no results against MongoDB 2.2/2.4 responds true to more()

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This fails on the current driver running against MongoDB < 2.6

          // Start with empty collection
          TEST_F(DBClientTest, AggregateNoResults) {
              std::auto_ptr<DBClientCursor> cursor = c.aggregate(TEST_NS, BSONObj());
              ASSERT_TRUE(cursor.get());
              ASSERT_FALSE(cursor->more());
          }
      

              Assignee:
              Tyler Brock (Inactive)
              Reporter:
              Tyler Brock (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: