Skip to content

Commit

Permalink
Fix rdb issue with 1.0.29 (#650)
Browse files Browse the repository at this point in the history
* fix issue with loading 1.0.29 rdb

* pumbed version to 1.4.6
  • Loading branch information
MeirShpilraien committed Apr 8, 2019
1 parent 84024f0 commit 6ee6668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/doc_table.c
Expand Up @@ -435,7 +435,7 @@ void DocTable_RdbLoad(DocTable *t, RedisModuleIO *rdb, int encver) {
dmd->score = RedisModule_LoadFloat(rdb);
dmd->payload = NULL;
// read payload if set
if (dmd->flags & Document_HasPayload) {
if ((dmd->flags & Document_HasPayload) && !(dmd->flags & Document_Deleted)) {
dmd->payload = RedisModule_Alloc(sizeof(RSPayload));
dmd->payload->data = RedisModule_LoadStringBuffer(rdb, &dmd->payload->len);
dmd->payload->len--;
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Expand Up @@ -4,7 +4,7 @@

#define REDISEARCH_VERSION_MAJOR 1
#define REDISEARCH_VERSION_MINOR 4
#define REDISEARCH_VERSION_PATCH 5
#define REDISEARCH_VERSION_PATCH 6

#define REDISEARCH_MODULE_VERSION \
(REDISEARCH_VERSION_MAJOR * 10000 + REDISEARCH_VERSION_MINOR * 100 + REDISEARCH_VERSION_PATCH)
Expand Down

0 comments on commit 6ee6668

Please sign in to comment.