1
0
Fork 0
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:
Sergey Prigogin 2016-10-03 17:16:07 -07:00
parent 91e227142b
commit 8d9924179f

View file

@ -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++;
}