commit - 304ab920ad0ac280b9a3e8efcd91f3552b8496d3
commit + d4bf606d29304006a85a35a8f09d38bf1529d2af
blob - cbd65127179c95a39404cc6f71d0a6013d7b5b8b
blob + 9308ca88d4a64a9bc17499a11e145339b966926c
--- src/cmd/venti/srv/wrarena.c
+++ src/cmd/venti/srv/wrarena.c
file = argv[0];
}
- fmtinstall('V', vtscorefmt);
+ ventifmtinstall();
statsinit();
sysfatal("vtconnect: %r");
}
+ print("%T starting to send data\n");
c = chancreate(sizeof(ZClump), 0);
for(i=0; i<12; i++)
vtproc(vtsendthread, nil);
rdarena(arena, offset);
- if(vtsync(z) < 0)
- sysfatal("executing sync: %r");
-
memset(&zerocl, 0, sizeof zerocl);
for(i=0; i<12; i++)
send(c, &zerocl);
+ if(vtsync(z) < 0)
+ sysfatal("executing sync: %r");
if(z){
vthangup(z);
}
+ print("%T sent all data\n");
+
threadexitsall(0);
}