Whamcloud - gitweb
LU-10267 llog: fix EOF handling in llog_client_next_block() 13/30313/2
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 29 Nov 2017 14:45:47 +0000 (08:45 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 17 Dec 2017 06:20:27 +0000 (06:20 +0000)
commita485c51379a0218aaf01f7c0baf8e4cc993d8824
treee70148a294a7c03f3d3d6efe913db1106b412973
parent4d534365ab214e28452c54fd2e0d4781e2f290d6
LU-10267 llog: fix EOF handling in llog_client_next_block()

In llog_client_next_block() update *cur_idx and *cur_offset in the
special case that the handler has returned -EIO after reaching the end
of the log without finding the desired record. This fixes client side
EOF detection in llog_process_thread().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: If30ebec065ddd38fb7b06c3e16f96bb3cd76fa1b
Reviewed-on: https://review.whamcloud.com/30313
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/llog_client.c