Explicitely close the file descriptor. It doesn't hurt. Also, since we open the file in 'raw' mode, I suspect the file descriptor is not closed when the couch_file server dies.
Explicitely close the file descriptor. It doesn't hurt.
Also, since we open the file in 'raw' mode, I suspect the file descriptor is not closed when the couch_file server dies.

From erl -man file:

"The raw option allows faster access to a file, because no Erlang process is needed to handle the file."

For me, no Erlang process handling the file means that it's likely the file is not closed by any other process.




git-svn-id: c1f8a8ec0b3bb2e99ab3413722f81f687760e79c@1001196 13f79535-47bb-0310-9956-ffa450edef68

fkaempfer/couchdb,fkaempfer/couchdb,KlausTrainer/couchdb-couch,apache/couchdb-couch,smithsz/couchdb-couch,alanning/couchdb-couch,fkaempfer/couchdb,cloudant/couchdb-couch,KlausTrainer/couchdb-couch,ngpestelos/couchdb-couch,cloudant/couchdb-couch,smithsz/couchdb-couch,alanning/couchdb-couch,ngpestelos/couchdb-couch,ngpestelos/couchdb-couch,cloudant/couchdb-couch,apache/couchdb-couch,apache/couchdb-couch,alanning/couchdb-couch,fkaempfer/couchdb,KlausTrainer/couchdb-couch,smithsz/couchdb-couch,fkaempfer/couchdb,fkaempfer/couchdb