Skip to content

Commit

Permalink
* Better API naming
Browse files Browse the repository at this point in the history
  • Loading branch information
adamansky committed Feb 2, 2023
1 parent 3d8d996 commit 11086a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/aws4dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,8 +1479,8 @@ iwrc aws4dd_query(
RCC(rc, finish, jbn_add_item_bool(n, "ConsistentRead", op->spec.consistent_read, 0, pool));
}

if (op->spec.scan_index_forward) {
RCC(rc, finish, jbn_add_item_bool(n, "ScanIndexForward", op->spec.scan_index_forward, 0, pool));
if (op->spec.scan_index_backward) {
RCC(rc, finish, jbn_add_item_bool(n, "ScanIndexForward", !op->spec.scan_index_backward, 0, pool));
}

switch (op->spec.select) {
Expand Down
2 changes: 1 addition & 1 deletion src/aws4dd.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ struct aws4dd_query_spec {
aws4dd_return_consumed_capacity_e return_consumed_capacity;
aws4dd_select_e select;
bool consistent_read;
bool scan_index_forward;
bool scan_index_backward;
uint32_t limit;
};

Expand Down
1 change: 0 additions & 1 deletion src/aws4dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ static iwrc _lock_check(struct aws4dl_lock *lock, bool *out_granted) {
.key_condition_expression = "#pk = :pk AND begins_with(#sk, :sk)",
.exclusive_start_key_json = iwxstr_ptr(xstr),
.limit = lock_spec->lock_check_page_size,
.scan_index_forward = true,
.consistent_read = true,
};

Expand Down

0 comments on commit 11086a9

Please sign in to comment.