From 1f30d1ab9d350740682292c07ae654a8221ff615 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 20 Feb 2014 15:01:07 -0800 Subject: [PATCH] ECBackend: deal with temp collection details in handle_sub_write Signed-off-by: Samuel Just --- src/osd/ECBackend.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osd/ECBackend.cc b/src/osd/ECBackend.cc index 3a92c45eefaa7..9e2765e806781 100644 --- a/src/osd/ECBackend.cc +++ b/src/osd/ECBackend.cc @@ -795,6 +795,11 @@ void ECBackend::handle_sub_write( if (!get_parent()->pgb_is_primary()) get_parent()->update_stats(op.stats); ObjectStore::Transaction *localt = new ObjectStore::Transaction; + if (op.temp_added.size()) { + get_temp_coll(localt); + add_temp_objs(op.temp_added); + } + clear_temp_objs(op.temp_removed); get_parent()->log_operation( op.log_entries, op.trim_to, -- 2.39.5