chiark / gitweb /
journal-remote: fix counting of events written
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 25 Sep 2014 21:26:40 +0000 (17:26 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 25 Sep 2014 22:19:03 +0000 (18:19 -0400)
commitdd87b1840c966fd25b81a7aa1071e8488c624db8
tree09ffe3fb255a7e32daa18c5f7b0ca449717f9260
parent22259a00fdb54dee818eeb1019421e2c516a330d
journal-remote: fix counting of events written

After recent changes the number was always reported as 0, because
the accounting was done server_destroy(), called after the message was
already printed. But even before this change, the counts were wrong
because seqnum start at 0 only for newly created journal files, so when
appending to existing files, the calculated count was wrong anyway.

Also do some variable renaming for consistency and disable some low-level
debug messages.
src/journal-remote/journal-remote-parse.c
src/journal-remote/journal-remote-write.c