]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os: use transparent comparator in ObjectStore::getattrs()
authorKefu Chai <kchai@redhat.com>
Mon, 28 Jun 2021 11:45:57 +0000 (19:45 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 29 Jun 2021 11:27:25 +0000 (11:27 +0000)
commita456e031ca5fd633aec00e583d4d7e44ad07778a
tree6fc111722a8f783f0cadd8ba8b0d78a2c9b0bca8
parent566a8a9888adeeebd897cbfccb9d7c4940687571
os: use transparent comparator in ObjectStore::getattrs()

for two reasons:

- better performance when looking on in the return map if the key
  is not a string, as we don't need to create a temporary string
  as the key
- improve the performance of crimson::AlienStore, as the latter
  uses the transparent comparator. as, without this change, we'd
  have to perform a deep copy to fill up the returned map with
  its non-transparent-comparator version.

Signed-off-by: Kefu Chai <kchai@redhat.com>
34 files changed:
src/os/FuseStore.cc
src/os/ObjectStore.h
src/os/Transaction.cc
src/os/Transaction.h
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h
src/os/filestore/FileStore.cc
src/os/filestore/FileStore.h
src/os/kstore/KStore.cc
src/os/kstore/KStore.h
src/os/kstore/kstore_types.h
src/os/memstore/MemStore.cc
src/os/memstore/MemStore.h
src/osd/ECBackend.cc
src/osd/ECBackend.h
src/osd/ECMsgTypes.h
src/osd/ECTransaction.cc
src/osd/PGBackend.cc
src/osd/PGBackend.h
src/osd/PGTransaction.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h
src/osd/ReplicatedBackend.cc
src/osd/ReplicatedBackend.h
src/osd/osd_internal_types.h
src/osd/osd_types.h
src/osdc/Objecter.h
src/test/fio/fio_ceph_objectstore.cc
src/test/objectstore/FileStoreDiff.cc
src/test/objectstore/FileStoreDiff.h
src/test/objectstore/store_test.cc
src/tools/RadosDump.h
src/tools/ceph_objectstore_tool.cc
src/tools/rados/PoolDump.cc