diff options
| author | Leyla Farazha <leyla@lindenlab.com> | 2011-10-27 16:16:57 -0700 |
|---|---|---|
| committer | Leyla Farazha <leyla@lindenlab.com> | 2011-10-27 16:16:57 -0700 |
| commit | a09df4f840fc841870da76e904efec51d3e304b4 (patch) | |
| tree | 12b434f44c4088865d9449a52c1c7648d5adacd4 /indra/llvfs/llvfs.cpp | |
| parent | 988278d236d789f490eed24a662a6ffe2be6455a (diff) | |
| parent | ad4ae99c30f1293bf8266c1f53ae62161bcb68bb (diff) | |
merge
Diffstat (limited to 'indra/llvfs/llvfs.cpp')
| -rw-r--r-- | indra/llvfs/llvfs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llvfs/llvfs.cpp b/indra/llvfs/llvfs.cpp index ade19f8103..82c926620a 100644 --- a/indra/llvfs/llvfs.cpp +++ b/indra/llvfs/llvfs.cpp @@ -234,7 +234,7 @@ LLVFS::LLVFS(const std::string& index_filename, const std::string& data_filename mDataFP(NULL), mIndexFP(NULL) { - mDataMutex = new LLMutex; + mDataMutex = new LLMutex(0); S32 i; for (i = 0; i < VFSLOCK_COUNT; i++) @@ -2098,7 +2098,8 @@ void LLVFS::dumpFiles() std::string filename = id.asString() + extension; llinfos << " Writing " << filename << llendl; - LLAPRFile outfile(filename, LL_APR_WB); + LLAPRFile outfile; + outfile.open(filename, LL_APR_WB); outfile.write(&buffer[0], size); outfile.close(); |
