Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid subdoc retry when doc is unsupported in metadata #240

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading