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

(CouchDB on Windows) compaction can not be done.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.8
    • 0.11.1, 1.0
    • Build System
    • None
    • Windows XP, Erlang/OTP R12B-3

    Description

      During compacting, rename the current DB file to a .old file is not allowed on Windows.

      A possible workaround for this could be:
      1. Close current DB file (.couch);
      2. Send db_updated to update to use .compact;
      3. After 5sec, delete the .couch file; ---- This is done in a linked process, after that, this process send a message to update_loop;
      4. After received the message in update_loop, close current DB file which is a .compact file, then rename it to .couch;
      5. Finally, db_updated again to use this new .couch file.

      Maybe, there would be a "pause" in service?

      Attachments

        1. windows_file_fix_2.patch
          6 kB
          Mark Hammond

        Issue Links

          Activity

            People

              paul.joseph.davis Paul Joseph Davis
              zhengji.li Li Zhengji
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 5h
                  5h
                  Remaining:
                  Remaining Estimate - 5h
                  5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified