2011/2/10 Lluís Batlle i Rossell <[email protected]>

> Hello,
>
> as I have a repository where I have reproduced the problem
> http://fossil-scm.org/index.html/tktview?name=fbea61caf0 , I'm
> investigating a
> bit.
>
> I found this:
> sqlite> .schema orphan
> CREATE TABLE orphan(
>  rid INTEGER PRIMARY KEY,
>    baseline INTEGER
>    );
>    CREATE INDEX orphan_baseline ON orphan(baseline);
> sqlite> select * from orphan;
> 8024|8031
> sqlite> select * from blob where rid=8024 or rid=8031;
> 8024|26|257565|5d6a9957808c417aae6f41c8c9cda1dc6e3bffbb|
> 8031|26|347|66514ffdad03438ddda7145dbedbed7f2e72a294|
>
> The first, 8024, is the BASELINE manifest artifact, that shows fine in all
> fossil operations. 8031 is the next DELTA manifest artifact, that does not
> show.
> No artifact after that shows, either.
>
> And as I told before, in the many times I've hit this problem, "fossil
> rebuild"
> fixes the situation.
>
> I keep on investigating, although of course I don't know much about what
> fossil
> should be doing in terms of sql operations/function calls.
>
> I'm only trying to ring a bell to drh.
>

I appreciate your efforts.  I have been unable to reproduce the problem, and
it hasn't been for a lack of trying.

When an artifact is received via sync, Fossil has to parse the artifact to
see what it means.  But in order to parse a delta-manifest correctly, it
must first have the base-manifest.  The ORPHAN table is there for
delta-manifests for which the corresponding baseline-manifest is still
missing.  Whenever a new baseline-manifest is received, it is suppose to
trigger parsing of all previously received delta-manifests that the
baseline-manifest depends on.

the after_dephantomize() routine in content.c is suppose to handle parsing
of delta-manifests when the baseline-manifest is received.

This is not working in your case.  I need to figure out why.....



>
> Regards,
> Lluís.
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>



-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to