Skip to content

Commit d02fbb3

Browse files
authored
Merge pull request #22 from sadhyama/webcfg_evtReg
To fix EventHandlingTask delay issue for blob sub docs
2 parents 1304ff9 + 0d4a85a commit d02fbb3

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/webcfg_multipart.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,14 @@ WEBCFG_STATUS processMsgpackSubdoc(char *transaction_id)
515515
//Update doc trans_id to validate events.
516516
WebcfgDebug("Update doc trans_id to validate events.\n");
517517
updateTmpList(subdoc_node, mp->entries[m].name_space, mp->entries[m].etag, "pending", "none", 0, doc_transId, 0);
518+
//If request type is BLOB, start event handler thread to process various error handling operations based on the events received from components.
519+
if(eventFlag == 0)
520+
{
521+
WebcfgInfo("starting initEventHandlingTask\n");
522+
initEventHandlingTask();
523+
processWebcfgEvents();
524+
eventFlag = 1;
525+
}
518526
}
519527
else
520528
{
@@ -541,14 +549,7 @@ WEBCFG_STATUS processMsgpackSubdoc(char *transaction_id)
541549
WebcfgDebug("reqParam[0].type is %d WDMP_BASE64 %d\n", reqParam[0].type, WDMP_BASE64);
542550
if(reqParam[0].type == WDMP_BASE64)
543551
{
544-
//If request type is BLOB, start event handler thread to process various error handling operations based on the events received from components.
545-
if(eventFlag == 0)
546-
{
547-
WebcfgInfo("blob subdoc success, starting initEventHandlingTask\n");
548-
initEventHandlingTask();
549-
processWebcfgEvents();
550-
eventFlag = 1;
551-
}
552+
WebcfgDebug("blob subdoc set is success\n");
552553
}
553554
else
554555
{

0 commit comments

Comments
 (0)