mirror of
https://github.com/ceph/ceph
synced 2025-03-01 22:12:06 +00:00
cls_rgw: refactor rgw_bucket_init_index in terms of tmap
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
parent
15a3df84dd
commit
83504c42c7
@ -128,8 +128,13 @@ int rgw_bucket_init_index(cls_method_context_t hctx, bufferlist *in, bufferlist
|
||||
}
|
||||
|
||||
rgw_bucket_dir dir;
|
||||
rc = write_bucket_dir(hctx, dir);
|
||||
|
||||
bufferlist map_bl;
|
||||
bufferlist header_bl;
|
||||
::encode(dir.header, header_bl);
|
||||
::encode(header_bl, map_bl);
|
||||
__u32 num_keys = 0;
|
||||
::encode(num_keys, map_bl);
|
||||
rc = cls_cxx_map_write_full(hctx, &map_bl);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user