private void linkObjects(Database db, WriteBuffer dbWriteBuffer) throws DhtException { if (objectList != null && !objectList.isEmpty()) { for (StoredObject obj : objectList) { db.objectIndex().add(ObjectIndexKey.create(repo, obj), obj.link(getChunkKey()), dbWriteBuffer); } } }
private void linkObjects(Database db, WriteBuffer dbWriteBuffer) throws DhtException { if (objectList != null && !objectList.isEmpty()) { for (StoredObject obj : objectList) { db.objectIndex().add(ObjectIndexKey.create(repo, obj), obj.link(getChunkKey()), dbWriteBuffer); } } }