mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
rgw_file: user info never synced since librgw init
Fixed: https://tracker.ceph.com/issues/37527 Signed-off-by: Tao Chen <chentao@umcloud.com>
This commit is contained in:
parent
948efa96bb
commit
e611be8dac
@ -119,6 +119,7 @@ namespace rgw {
|
||||
RGWLibFS* fs = iter->first->ref();
|
||||
uniq.unlock();
|
||||
fs->gc();
|
||||
fs->update_user();
|
||||
fs->rele();
|
||||
uniq.lock();
|
||||
if (cur_gen != gen)
|
||||
|
@ -1237,6 +1237,13 @@ namespace rgw {
|
||||
|
||||
RGWUserInfo* get_user() { return &user; }
|
||||
|
||||
void update_user() {
|
||||
RGWUserInfo _user = user;
|
||||
int ret = rgw_get_user_info_by_access_key(rgwlib.get_store(), key.id, user);
|
||||
if (ret != 0)
|
||||
user = _user;
|
||||
}
|
||||
|
||||
void close();
|
||||
void gc();
|
||||
}; /* RGWLibFS */
|
||||
|
Loading…
Reference in New Issue
Block a user