Hi, I think it would be neat if we could utilize our existing mechanism rather than a new flag. In particular, MVCC and branches for session isolation. And also simply use session.save() to indicate that an upload is complete (and the branch containing the binaries/chunks can be merged).
Michael Sent from a mobile device On Tue, Sep 6, 2016 at 1:15 PM +0200, "Marcel Reutegger" <[email protected]<mailto:[email protected]>> wrote: Hi, On 06/09/16 12:34, Bertrand Delacretaz wrote: > On Tue, Sep 6, 2016 at 9:49 AM, Marcel Reutegger <[email protected]> wrote: >> ...we'd still have to add >> Jackrabbit API to support it. E.g. something like: >> >> valueFactory.createBinary(existingBinary, appendThisInputStream); ... > > And maybe a way to mark the binary as "in progress" to avoid > applications using half-uploaded binaries? This can easily be prevented if the 'in progress' binary is uploaded to a temporary location first and then copied over to the correct location once complete. Keep in mind that copying a large existing binary in Oak is simply a cheap copy of the reference. Regards Marcel
