Skip to content

Commit

Permalink
Merge pull request #240 from sadhyama/unsupported_retry
Browse files Browse the repository at this point in the history
Avoid subdoc retry when doc is unsupported in metadata
  • Loading branch information
sadhyama authored Jan 21, 2025
2 parents b70ee93 + c4be107 commit 099ec2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/webcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,11 @@ void *WebConfigMultipartTask(void *status)
pthread_mutex_unlock (&sync_mutex);
break;
}

else
{
WebcfgError("sync_condition pthread_cond wait failed with value of rv: [%d]\n", rv);
}

pthread_mutex_unlock(&sync_mutex);

}
Expand Down
3 changes: 2 additions & 1 deletion src/webcfg_multipart.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,9 @@ WEBCFG_STATUS processMsgpackSubdoc(char *transaction_id)
{
subdocStatus = isSubDocSupported(mp->name_space);
WebcfgDebug("ccspStatus is %d\n", ccspStatus);
if(ccspStatus == 204 && subdocStatus != WEBCFG_SUCCESS)
if(subdocStatus != WEBCFG_SUCCESS)
{
WebcfgInfo("Rejecting unsupported subdoc\n");
snprintf(result,MAX_VALUE_LEN,"doc_unsupported:%s", errDetails);
}
else
Expand Down

0 comments on commit 099ec2f

Please sign in to comment.