Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-957

'Compact Views' compacts the database, not the view, if a design document is not selected.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.0.2, 1.1
    • None
    • None

    Description

      Running 'Compact Views' from Futon when you are not viewing a design document causes the database to be compacted, not the view.

      from futon.browse.js;

      case "compact_views":
      var groupname = page.viewName.substring(8,
      page.viewName.indexOf("/_view"));
      db.compactView(groupname, {success: function(resp) { callback() }});
      break;

      in this case the substring is empty, so the POST goes straight to /dbname/_compact

      Attachments

        Activity

          People

            rnewson Robert Newson
            rnewson Robert Newson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: