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

Add 'create_doc' index privilege #45806

Merged
merged 21 commits into from
Oct 7, 2019
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove the logic to determine effective op_type
Yogesh Gaikwad committed Oct 4, 2019
commit 39270635ad9fe90f251b3691733f205b1690db0a
Original file line number Diff line number Diff line change
@@ -539,11 +539,6 @@ private static String getAction(BulkItemRequest item) {
final DocWriteRequest<?> docWriteRequest = item.request();
switch (docWriteRequest.opType()) {
case INDEX:
IndexRequest request = (IndexRequest) item.request();
if (request.getAutoGeneratedTimestamp() != IndexRequest.UNSET_AUTO_GENERATED_TIMESTAMP) {
// it is auto generated so create is implied
return IMPLIED_CREATE_ACTION;
}
return IMPLIED_INDEX_ACTION;
case CREATE:
return IMPLIED_CREATE_ACTION;