complain loudly about vtwrite failure
This commit is contained in:
parent
4f6d2bb1e8
commit
86190ea39d
@ -450,8 +450,12 @@ myvtwrite(VtConn *z, uchar score[VtScoreSize], uint type, uchar *buf, int n)
|
|||||||
{
|
{
|
||||||
WriteReq wr;
|
WriteReq wr;
|
||||||
|
|
||||||
if(nwritethread == 0)
|
if(nwritethread == 0){
|
||||||
return vtwrite(z, score, type, buf, n);
|
n = vtwrite(z, score, type, buf, n);
|
||||||
|
if(n < 0)
|
||||||
|
sysfatal("vtwrite: %r");
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
|
||||||
wr.p = packetalloc();
|
wr.p = packetalloc();
|
||||||
packetappend(wr.p, buf, n);
|
packetappend(wr.p, buf, n);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user