]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: encode snaps more efficiently
authorSage Weil <sage@redhat.com>
Tue, 16 May 2017 21:33:48 +0000 (17:33 -0400)
committerSage Weil <sage@redhat.com>
Tue, 16 May 2017 21:33:48 +0000 (17:33 -0400)
commit234a989de4ed754ddea644df504eabdbb8f6c0c5
tree8f8de88a24b9c55de7598e03dcfd3ba182a34c53
parentb540b4299d6cc62f7aa83db81cc19658596b45df
osd: encode snaps more efficiently

1- encode into a sized buffer.
2- do not needlessly copy the set<> to a vector<> before encoding.
set<> and vector<> encode identically.  Since we are converting from sorted
set<> to unsorted vector<>, the order doesn't change either.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ECTransaction.cc
src/osd/ReplicatedBackend.cc