]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
posixdriver: fix cache fill of versioned buckets
authorMatt Benjamin <mbenjamin@redhat.com>
Sun, 15 Feb 2026 20:56:03 +0000 (15:56 -0500)
committerDaniel Gryniewicz <dang@fprintf.net>
Fri, 29 May 2026 16:05:12 +0000 (12:05 -0400)
commit30dc89fb9c006ce19d7ce61d2aa1efa1c1564f45
tree83110de9e9b7bacac281462807599bcf40f4b91b
parent847d8237281b87ba94e74183e5f2dee8e2327fea
posixdriver: fix cache fill of versioned buckets

This change completes the original intent (hypothesized) to
conditionally set the FLAG_CURRENT bit on just the current
entries during bucket listing cache fill.

This avoids interning 2 copies of the current version of each
object in the listing cache, and also correctly sets the
FLAG_CURRENT bit as required--so the current versions are correctly
reported in versioned listings.

Janky logic to find the current version by explicitly chasing
the symlink target and saving it outside the enumeration scope
has been replaced with proper call to stat() provided by Dang.

Symlink::fill_cache() is no longer used, so removed.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/driver/posix/rgw_sal_posix.cc
src/rgw/driver/posix/rgw_sal_posix.h