From 64cf7597b670339215595e869d0ee7e4748e31c1 Mon Sep 17 00:00:00 2001 From: Thomas Jackson Date: Wed, 14 Sep 2016 11:12:47 -0700 Subject: [PATCH] TS-4867: Only schedule the serializer after we have completely finished initializing Otherwise there is a race between initialization and the eventProcessor --- iocore/hostdb/P_RefCountCacheSerializer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocore/hostdb/P_RefCountCacheSerializer.h b/iocore/hostdb/P_RefCountCacheSerializer.h index f0bf624986a..410333f4593 100644 --- a/iocore/hostdb/P_RefCountCacheSerializer.h +++ b/iocore/hostdb/P_RefCountCacheSerializer.h @@ -92,11 +92,11 @@ RefCountCacheSerializer::RefCountCacheSerializer(Continuation *acont, C *cc, total_size(0), rsb(cc->get_rsb()) { - eventProcessor.schedule_imm(this, ET_TASK); this->tmp_filename = this->filename + ".syncing"; // TODO tmp file extension configurable? Debug("refcountcache", "started serializer %p", this); SET_HANDLER(&RefCountCacheSerializer::initialize_storage); + eventProcessor.schedule_imm(this, ET_TASK); } template RefCountCacheSerializer::~RefCountCacheSerializer()