On Wed, Jun 10, 2009 at 8:37 PM, Edward K. Ream<[email protected]> wrote:

>> In summary, the "safe" way to recreate vnode uAs is storing both gnx
>> and archivedposition. If archivedposition fails, it can still look up
>> the node by gnx, provided that it has only one node with that gnx. If
>> it has several, then it's ok to fail.
>>
>> But, the only safe uA is the tnode uA...
>
> Can we do this for b2? (Might as well make b2 truly memorable :-)  Iirc, the
> code is already somewhere in Leo.  Do have a link to the discussion?

There is a proto for one version:

Scripts-->@thin leoScripts.txt-->Prototypes-->pos_to_archive, archive_to_pos

But, this causes more lengthy archived positions than what would be
usable in xml files (gnx1.gnx2.gnx3...)

currently p.archivedPosition gives 1.2.4. Perhaps it should be changed
to give 1.2.4:gnx. That way, resolveArchivedPosition could remain
compatible with old archived positions.

Shouldn't be too risky - and improving data integrity is worth it. We
can still fail if the gnx can't be found in the subtree being scanned
(like we fail now when the position can't be found).

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to