Restore IndexView.DropAll()’s response body

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Go Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      Driver v2 made IndexView().DropAll() no longer return the server’s response, from which `nIndexesWas` could be extracted.

      The idea was that a pre-check can be done to learn the # of indexes before dropping any, which obviates the actual server response.

      This is wrong, though, because there could be an index creation or drop between the pre-check and the DropAll() call. So v2 deleted useful information from this API.

      Definition of done

      Restore the format from v1’s DropAll().

      Pitfalls

      • This will break applications written against v2’s DropAll()/.

            Assignee:
            Unassigned
            Reporter:
            Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: