ceph-csi/internal/journal
John Mulligan e99b996bea journal: fix reading omaps from objects with large key counts
The implementation of getOMapValues assumed that the number of key-value
pairs assigned to the object would be close to the number of keys
being requested. When the number of keys on the object exceeded the
"listExcess" value the function would fail to read additional keys
even if they existed in the omap.
This change sets a large fixed "chunk size" value and keeps reading
key-value pairs as long as the callback gets called and increments
the numKeys counter.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 8a41cd03a5)
2020-11-06 07:46:07 +00:00
..
omap.go journal: fix reading omaps from objects with large key counts 2020-11-06 07:46:07 +00:00
voljournal.go journal: replace klog with util logger in voljournal.go 2020-08-19 15:35:13 +00:00