mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +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];
|
Chunk chunk= fChunks[index];
|
||||||
if (chunk == null) {
|
if (chunk == null) {
|
||||||
cacheMisses++;
|
cacheMisses++;
|
||||||
chunk = fChunks[index] = new Chunk(this, index);
|
chunk = new Chunk(this, index);
|
||||||
chunk.read();
|
chunk.read();
|
||||||
|
// Put the chunk in fChunks after it was read successfully.
|
||||||
|
fChunks[index] = chunk;
|
||||||
} else {
|
} else {
|
||||||
cacheHits++;
|
cacheHits++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue