From 519494cda860ac90d8a3f6d9547f9629ca851b86 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sun, 10 Feb 2008 03:59:29 +0000 Subject: [PATCH] Open the file shareable with a buffer size equal to record size. --- exec/load/recordfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/load/recordfile.js b/exec/load/recordfile.js index c678bb681e..d90825803c 100644 --- a/exec/load/recordfile.js +++ b/exec/load/recordfile.js @@ -29,10 +29,10 @@ function GetRecordLength(RecordDef) function RecordFile(filename, definition) { this.file=new File(filename); - if(!this.file.open(file_exists(this.file.name)?"rb+":"wb+")) + this.RecordLength=GetRecordLength(this.fields); + if(!this.file.open(file_exists(this.file.name)?"rb+":"wb+",true,this.RecordLength)) return(null); this.fields=definition; - this.RecordLength=GetRecordLength(this.fields); this.length=this.file.length/this.RecordLength; /* Read a record by index */ -- GitLab