diff options
author | Jacek Antonelli | 2010-02-08 17:01:00 -0600 |
---|---|---|
committer | Jacek Antonelli | 2010-02-08 17:01:00 -0600 |
commit | d96e672c7fa0cb59ef0c30163326bb40220e745a (patch) | |
tree | 0578f6258788f44f91dbf84eebdb09d994e2a0e5 /linden/indra/llvfs/lllfsthread.cpp | |
parent | Fixed login screen only allowing 16 chars per name. (diff) | |
download | meta-impy-d96e672c7fa0cb59ef0c30163326bb40220e745a.zip meta-impy-d96e672c7fa0cb59ef0c30163326bb40220e745a.tar.gz meta-impy-d96e672c7fa0cb59ef0c30163326bb40220e745a.tar.bz2 meta-impy-d96e672c7fa0cb59ef0c30163326bb40220e745a.tar.xz |
Ported many APR changes from Snowglobe.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llvfs/lllfsthread.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/linden/indra/llvfs/lllfsthread.cpp b/linden/indra/llvfs/lllfsthread.cpp index 704e1ab..cd91220 100644 --- a/linden/indra/llvfs/lllfsthread.cpp +++ b/linden/indra/llvfs/lllfsthread.cpp | |||
@@ -73,10 +73,6 @@ LLLFSThread::LLLFSThread(bool threaded) : | |||
73 | LLQueuedThread("LFS", threaded), | 73 | LLQueuedThread("LFS", threaded), |
74 | mPriorityCounter(PRIORITY_LOWBITS) | 74 | mPriorityCounter(PRIORITY_LOWBITS) |
75 | { | 75 | { |
76 | if(!mLocalAPRFilePoolp) | ||
77 | { | ||
78 | mLocalAPRFilePoolp = new LLVolatileAPRPool() ; | ||
79 | } | ||
80 | } | 76 | } |
81 | 77 | ||
82 | LLLFSThread::~LLLFSThread() | 78 | LLLFSThread::~LLLFSThread() |
@@ -189,7 +185,7 @@ bool LLLFSThread::Request::processRequest() | |||
189 | { | 185 | { |
190 | llassert(mOffset >= 0); | 186 | llassert(mOffset >= 0); |
191 | LLAPRFile infile ; | 187 | LLAPRFile infile ; |
192 | infile.open(mThread->getLocalAPRFilePool(), mFileName, LL_APR_RB); | 188 | infile.open(mFileName, LL_APR_RB, LLAPRFile::local); |
193 | if (!infile.getFileHandle()) | 189 | if (!infile.getFileHandle()) |
194 | { | 190 | { |
195 | llwarns << "LLLFS: Unable to read file: " << mFileName << llendl; | 191 | llwarns << "LLLFS: Unable to read file: " << mFileName << llendl; |
@@ -213,7 +209,7 @@ bool LLLFSThread::Request::processRequest() | |||
213 | if (mOffset < 0) | 209 | if (mOffset < 0) |
214 | flags |= APR_APPEND; | 210 | flags |= APR_APPEND; |
215 | LLAPRFile outfile ; | 211 | LLAPRFile outfile ; |
216 | outfile.open(mThread->getLocalAPRFilePool(), mFileName, flags); | 212 | outfile.open(mFileName, flags, LLAPRFile::local); |
217 | if (!outfile.getFileHandle()) | 213 | if (!outfile.getFileHandle()) |
218 | { | 214 | { |
219 | llwarns << "LLLFS: Unable to write file: " << mFileName << llendl; | 215 | llwarns << "LLLFS: Unable to write file: " << mFileName << llendl; |