]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: avoid evaluating nullptr for readdir offset 20145/head
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 27 Jan 2018 21:27:45 +0000 (16:27 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Sat, 27 Jan 2018 21:40:06 +0000 (16:40 -0500)
commitbae94c6869018f54b01cb109f96e4062394be69d
treebade67c7130ee971c05a5ae3711a12ab90d987e9
parent7fe6917ba69cb1d161d5ea6bcbfcf22655723538
rgw_file: avoid evaluating nullptr for readdir offset

I've found by experimentation that passing a null pointer
as a value to a CachedPrebufferedStreambuf ostream caused
subsequent log prints to be squelched.

(That's likely a bug, doesn't happen when the thread_local
optimization change is reverted.)

Fixes: https://tracker.ceph.com/issues/22820
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h