couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhengji...@t3gt.com
Subject Re: [jira] Created: (COUCHDB-86) (CouchDB on Windows) compaction can not be done.
Date Thu, 26 Jun 2008 03:54:52 GMT
The problem is how to set this flag FILE_SHARE_DELETE when calling
CreateFile. To modify BEAM VM source code and rebuild it?

I think that another method should be found to smooth the upgrading of
.couch file with its compaction version.



|---------+---------------------------->
|         |           Darren New       |
|         |           <dnew@san.rr.com>|
|         |                            |
|         |           2008-06-26 00:14 |
|         |           Please respond to|
|         |           couchdb-dev      |
|---------+---------------------------->
  >------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                      
                                       |
  |       To:       couchdb-dev@incubator.apache.org                                     
                                       |
  |       cc:                                                                            
                                       |
  |       Subject:  Re: [jira] Created: (COUCHDB-86) (CouchDB on Windows) compaction can not
be done.                            |
  >------------------------------------------------------------------------------------------------------------------------------|




Li Zhengji (JIRA) wrote:
> During compacting, rename the current DB file to a .old file is not
allowed on Windows.

If the problem is with renaming the file because it is open, you can do
this on Windows (with NTFS at least) by opening the file with the
correct mode.

You have to have every open of the file add delete/rename permissions to
the CreateFile calls that open that file. It's not disallowed, it's that
you've asked it to be disallowed. It's a one-flag change to make it
allowed.

--
Darren New / San Diego, CA, USA (PST)
  Helpful housekeeping hints:
   Check your feather pillows for holes
    before putting them in the washing machine.



Mime
View raw message