complain loudly about vtwrite failure
This commit is contained in:
parent
4f6d2bb1e8
commit
86190ea39d
1 changed files with 6 additions and 2 deletions
|
|
@ -450,8 +450,12 @@ myvtwrite(VtConn *z, uchar score[VtScoreSize], uint type, uchar *buf, int n)
|
|||
{
|
||||
WriteReq wr;
|
||||
|
||||
if(nwritethread == 0)
|
||||
return vtwrite(z, score, type, buf, n);
|
||||
if(nwritethread == 0){
|
||||
n = vtwrite(z, score, type, buf, n);
|
||||
if(n < 0)
|
||||
sysfatal("vtwrite: %r");
|
||||
return n;
|
||||
}
|
||||
|
||||
wr.p = packetalloc();
|
||||
packetappend(wr.p, buf, n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue