mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 502985 - CDT index may be getting corrupted by IOExceptions or calls
to Thread.interrupt() Change-Id: I180b55dbc9ca68a2b2d7ee668515aaf28d1b71c9
This commit is contained in:
parent
91e227142b
commit
8d9924179f
1 changed files with 3 additions and 1 deletions
|
@ -277,8 +277,10 @@ public class Database {
|
|||
Chunk chunk= fChunks[index];
|
||||
if (chunk == null) {
|
||||
cacheMisses++;
|
||||
chunk = fChunks[index] = new Chunk(this, index);
|
||||
chunk = new Chunk(this, index);
|
||||
chunk.read();
|
||||
// Put the chunk in fChunks after it was read successfully.
|
||||
fChunks[index] = chunk;
|
||||
} else {
|
||||
cacheHits++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue