Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-775

getLastError should ensure db.requestStart has been called

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      I've been using MongoDB for quite a long time and didn't know about db.requestStart() until this past week. If you're going to call getLastError than it seems like it would be nice to ensure that db.requestStart() has been called. This could be an optional feature to not break existing code.

      Or an even better question is why is getLastError a separate command? That has always seemed very odd to me. Why not just add an option where the original request can return the error in the response? Then you would save a network round-trip.

            Assignee:
            Unassigned Unassigned
            Reporter:
            chengas123 Ben McCann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: