[Cluster-devel] cluster/group/daemon main.c
teigland at sourceware.org
teigland at sourceware.org
Thu Jul 13 18:21:36 UTC 2006
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-07-13 18:21:36
Modified files:
group/daemon : main.c
Log message:
fix dump len so we don't complain
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/main.c.diff?cvsroot=cluster&r1=1.38&r2=1.39
--- cluster/group/daemon/main.c 2006/06/22 19:06:07 1.38
+++ cluster/group/daemon/main.c 2006/07/13 18:21:35 1.39
@@ -488,15 +488,15 @@
static int do_dump(int ci, int argc, char **argv)
{
- int rv, len = DUMP_SIZE;
+ int rv, len;
if (dump_wrap) {
len = DUMP_SIZE - dump_point;
rv = write(client[ci].fd, dump_buf + dump_point, len);
if (rv != len)
log_print("write error %d errno %d", rv, errno);
- len = dump_point;
}
+ len = dump_point;
rv = write(client[ci].fd, dump_buf, len);
if (rv != len)
More information about the Cluster-devel
mailing list