9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rsc@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] replica (was: ipv6)
Date: Tue, 28 May 2002 18:19:56 -0400	[thread overview]
Message-ID: <39bddd2e5512517de264f35ab6e88af1@plan9.bell-labs.com> (raw)

> So I can get incompatible files in 'partial' updates:
> - current log tells me I need foo.h and foo.c
> - pull gets foo.h
> - someone updates foo.h and foo.c (but wont enter log until next
> cron run)
> - pull then gets (newer) foo.c

Damn!  I failed to confuse you.  ☺

Yes, you're absolutely right.

> I've now got a wrong foo.h/foo.c pair and they wont compile.
>
> My foo.h is correct as per the log info
> Pull can spot that foo.c is more up to date but without
> dependency info cannot determine that it needs to re-fetch foo.h

Yes.

> This is resolved by re-running pull after the next log update.
> This raises two questions:
> How do I know when the log is up to date (mk scan has run)?

You have to trust us to run mk scan after we make changes.
If, after pulling, you run

	date `{tail -1 /dist/replica/client/plan9.log | awk '{print $1}'}

and that was more than half an hour ago, then you
have everything we've put out on sources.  We use a
script that pushes the changes over en masse, so we're
talking maybe a second between updates, not large
amounts of time.

> How do I know if I have to schedule a new pull because I got a
> 'partial' update?

You don't, really.  That would require predicting the future.
At the time you disconnected, there was no way to know
that, say, foo.c was going to get changed two minutes later.

Still, if you just did a pull and didn't get any changes less
than half an hour old (run the date command above for
the time of the last change), you've probably got a decent set,
even assuming we forgot to run mk scan manually.

We usually mention the big change sets on 9fans;
that's a reasonable way to know when there are big
things waiting to be picked up.

If you find something that you think is wrong,
you can always ask on 9fans.  Sometimes we just
miss files, though we've got tools that try to keep
that from happening.  Let us know.

Russ



             reply	other threads:[~2002-05-28 22:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-28 22:19 rsc [this message]
2002-05-28 23:33 ` Micah Stetson
  -- strict thread matches above, loose matches on Subject: below --
2002-05-28 21:28 rsc
2002-05-28 21:55 ` Chris Hollis-Locke
2002-05-28 20:58 presotto
2002-05-28 16:55 rsc
2002-05-28 16:42 forsyth
2002-05-28 15:35 Russ Cox
2002-05-28 16:41 ` postmaster
2002-05-28 15:32 Russ Cox
2002-05-28 15:05 presotto
2002-05-28 12:29 [9fans] ipv6 presotto
2002-05-28 13:26 ` [9fans] replica (was: ipv6) Axel Belinfante

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39bddd2e5512517de264f35ab6e88af1@plan9.bell-labs.com \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).