Skip to content

Commit 2de526b

Browse files
jooho812MinWooJin
authored andcommitted
CLEANUP : change the range type of bop gbp
1 parent b273038 commit 2de526b

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

engines/default/default_engine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ static ENGINE_ERROR_CODE
950950
default_btree_elem_get_by_posi(ENGINE_HANDLE* handle, const void* cookie,
951951
const char *key, const size_t nkey,
952952
ENGINE_BTREE_ORDER order,
953-
int from_posi, int to_posi,
953+
uint32_t from_posi, uint32_t to_posi,
954954
eitem **eitem_array, uint32_t *eitem_count,
955955
uint32_t *flags, uint16_t vbucket)
956956
{

engines/default/items.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7384,7 +7384,7 @@ ENGINE_ERROR_CODE btree_posi_find_with_get(struct default_engine *engine,
73847384

73857385
ENGINE_ERROR_CODE btree_elem_get_by_posi(struct default_engine *engine,
73867386
const char *key, const size_t nkey,
7387-
ENGINE_BTREE_ORDER order, int from_posi, int to_posi,
7387+
ENGINE_BTREE_ORDER order, uint32_t from_posi, uint32_t to_posi,
73887388
btree_elem_item **elem_array, uint32_t *elem_count, uint32_t *flags)
73897389
{
73907390
hash_item *it;
@@ -7393,8 +7393,6 @@ ENGINE_ERROR_CODE btree_elem_get_by_posi(struct default_engine *engine,
73937393
uint32_t rqcount;
73947394
bool forward;
73957395

7396-
assert(from_posi >= 0 && to_posi >= 0);
7397-
73987396
pthread_mutex_lock(&engine->cache_lock);
73997397
ret = do_btree_item_find(engine, key, nkey, true, &it);
74007398
if (ret == ENGINE_SUCCESS) {

engines/default/items.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ ENGINE_ERROR_CODE btree_posi_find_with_get(struct default_engine *engine,
584584

585585
ENGINE_ERROR_CODE btree_elem_get_by_posi(struct default_engine *engine,
586586
const char *key, const size_t nkey,
587-
ENGINE_BTREE_ORDER order, int from_posi, int to_posi,
587+
ENGINE_BTREE_ORDER order, uint32_t from_posi, uint32_t to_posi,
588588
btree_elem_item **elem_array, uint32_t *elem_count, uint32_t *flags);
589589

590590
#ifdef SUPPORT_BOP_SMGET

engines/demo/demo_engine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ static ENGINE_ERROR_CODE
610610
Demo_btree_elem_get_by_posi(ENGINE_HANDLE* handle, const void* cookie,
611611
const char *key, const size_t nkey,
612612
ENGINE_BTREE_ORDER order,
613-
int from_posi, int to_posi,
613+
uint32_t from_posi, uint32_t to_posi,
614614
eitem **eitem_array, uint32_t *eitem_count,
615615
uint32_t *flags, uint16_t vbucket)
616616
{

include/memcached/engine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ extern "C" {
580580
ENGINE_ERROR_CODE (*btree_elem_get_by_posi)(ENGINE_HANDLE *handle, const void* cookie,
581581
const char *key, const size_t nkey,
582582
ENGINE_BTREE_ORDER order,
583-
int from_posi, int to_posi,
583+
uint32_t from_posi, uint32_t to_posi,
584584
eitem **eitem_array, uint32_t *eitem_count,
585585
uint32_t *flags, uint16_t vbucket);
586586

0 commit comments

Comments
 (0)