diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2008-03-09 03:14:53 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2008-03-09 03:14:53 +0000 |
commit | 57bbfd67e0c60361607f0fe9754b6e180f256a89 (patch) | |
tree | b45a59fb8b02d8075813ec716330f0644f13f769 /usr.bin/cvs/checkout.c | |
parent | a57a4c04aca279828055a89d7d8f1207957a706c (diff) |
proper repository locking:
- all read operations now look for a lock, and wait if present but never
try to lock the tree themselfs anymore.
- all write operations lock the tree where needed.
- commit locks all relevant directories before even attempting to start.
Diffstat (limited to 'usr.bin/cvs/checkout.c')
-rw-r--r-- | usr.bin/cvs/checkout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c index d2c64e104ac..cedc6a3fe26 100644 --- a/usr.bin/cvs/checkout.c +++ b/usr.bin/cvs/checkout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: checkout.c,v 1.142 2008/03/08 20:26:34 joris Exp $ */ +/* $OpenBSD: checkout.c,v 1.143 2008/03/09 03:14:52 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -416,7 +416,7 @@ checkout_repository(const char *repobase, const char *wdbase) cr.fileproc = cvs_update_local; cr.flags = flags; - cvs_repository_lock(repobase); + cvs_repository_lock(repobase, 0); cvs_repository_getdir(repobase, wdbase, &fl, &dl, flags & CR_RECURSE_DIRS ? 1 : 0); |