out = objdb.writeFile(pack, PACK);
try {
pw.writePack(pm, pm, out);
+ pack.addFileExt(PACK);
} finally {
out.close();
}
try {
CountingOutputStream cnt = new CountingOutputStream(out);
pw.writeIndex(cnt);
+ pack.addFileExt(INDEX);
pack.setFileSize(INDEX, cnt.getCount());
pack.setIndexVersion(pw.getIndexVersion());
} finally {
try {
CountingOutputStream cnt = new CountingOutputStream(out);
pw.writeBitmapIndex(cnt);
+ pack.addFileExt(BITMAP_INDEX);
pack.setFileSize(BITMAP_INDEX, cnt.getCount());
} finally {
out.close();
throw new IOException();
byte[] packHash = packOut.writePackFooter();
+ packDsc.addFileExt(PACK);
packDsc.setFileSize(PACK, packOut.getCount());
packOut.close();
packOut = null;
buf.writeTo(cnt, null);
else
index(cnt, packHash, list);
+ pack.addFileExt(INDEX);
pack.setFileSize(INDEX, cnt.getCount());
} finally {
os.close();
DfsOutputStream out = objdb.writeFile(pack, PACK);
try {
pw.writePack(pm, pm, out);
+ pack.addFileExt(PACK);
} finally {
out.close();
}
try {
CountingOutputStream cnt = new CountingOutputStream(out);
pw.writeIndex(cnt);
+ pack.addFileExt(INDEX);
pack.setFileSize(INDEX, cnt.getCount());
pack.setIndexVersion(pw.getIndexVersion());
} finally {
out = null;
currBuf = null;
readBlock = null;
+ packDsc.addFileExt(PACK);
packDsc.setFileSize(PACK, packEnd);
writePackIndex();