Browse Source

Plan 9 from Bell Labs 2008-06-09

David du Colombier 13 years ago
parent
commit
ea26734fde
4 changed files with 8 additions and 4 deletions
  1. 1 1
      dist/replica/_plan9.db
  2. 1 1
      dist/replica/plan9.db
  3. 1 0
      dist/replica/plan9.log
  4. 5 2
      sys/src/cmd/venti/srv/buildindex.c

+ 1 - 1
dist/replica/_plan9.db

@@ -14374,7 +14374,7 @@ sys/src/cmd/venti/srv/arena.c - 664 sys sys 1207253133 20156
 sys/src/cmd/venti/srv/arenas.c - 664 sys sys 1211224670 8048
 sys/src/cmd/venti/srv/bloom.c - 664 sys sys 1196369124 4445
 sys/src/cmd/venti/srv/buildbuck.c - 664 sys sys 1177189435 2837
-sys/src/cmd/venti/srv/buildindex.c - 664 sys sys 1212642437 21703
+sys/src/cmd/venti/srv/buildindex.c - 664 sys sys 1212974464 21739
 sys/src/cmd/venti/srv/checkarenas.c - 664 sys sys 1191257304 2310
 sys/src/cmd/venti/srv/checkindex.c - 664 sys sys 1179342633 5978
 sys/src/cmd/venti/srv/clump.c - 664 sys sys 1191257297 5316

+ 1 - 1
dist/replica/plan9.db

@@ -14374,7 +14374,7 @@ sys/src/cmd/venti/srv/arena.c - 664 sys sys 1207253133 20156
 sys/src/cmd/venti/srv/arenas.c - 664 sys sys 1211224670 8048
 sys/src/cmd/venti/srv/bloom.c - 664 sys sys 1196369124 4445
 sys/src/cmd/venti/srv/buildbuck.c - 664 sys sys 1177189435 2837
-sys/src/cmd/venti/srv/buildindex.c - 664 sys sys 1212642437 21703
+sys/src/cmd/venti/srv/buildindex.c - 664 sys sys 1212974464 21739
 sys/src/cmd/venti/srv/checkarenas.c - 664 sys sys 1191257304 2310
 sys/src/cmd/venti/srv/checkindex.c - 664 sys sys 1179342633 5978
 sys/src/cmd/venti/srv/clump.c - 664 sys sys 1191257297 5316

+ 1 - 0
dist/replica/plan9.log

@@ -19832,3 +19832,4 @@
 1212692406 0 c sys/src/cmd/upas/ned/nedmail.c - 664 sys sys 1212691953 44795
 1212696005 0 c 386/bin/venti/buildindex - 775 sys sys 1212695266 259494
 1212724805 0 c 386/bin/upas/nedmail - 775 sys sys 1212724063 156265
+1212975003 0 c sys/src/cmd/venti/srv/buildindex.c - 664 sys sys 1212974464 21739

+ 5 - 2
sys/src/cmd/venti/srv/buildindex.c

@@ -811,8 +811,11 @@ isectproc(void *v)
 			sysfatal("not enough memory");
 		nminibuf = nbuf;
 	}
-	if (nbuf == 0)
-		sysfatal("zero nbuf; isect too small");
+	if (nbuf == 0) {
+		fprint(2, "%s: brand-new index, no work to do\n", argv0);
+		exits(0);
+	}
+
 	/* size buffer to use extra memory */
 	bufsize = MinBufSize;
 	while(bufsize*2*nbuf <= isectmem && bufsize < MaxBufSize)