Commit 2dd6a3ce authored by Ajit Jagtap's avatar Ajit Jagtap
Browse files

Merge branch 'reorg_error_handling' into 'devbranch'

fixed error handling, removed unnecessary logs

See merge request !202
parents 1f979647 50a9da50
Branches ab_Add_CallByBranch
Tags
2 merge requests!210Staging mepdeployment05072020,!202fixed error handling, removed unnecessary logs
Showing with 1 addition and 3 deletions
......@@ -288,5 +288,5 @@ func (pb *PackBucket) Reorg(filePaths []string) (errList []error) {
continue
}
}
return nil
return
}
......@@ -316,7 +316,6 @@ func ReadDataFromFDB(dbName, indexID string, data *gjson.Result, queries []strin
}
resultToReturn := gjson.Parse("[]")
if len(indexKeyValueMap) == 0 {
loggermdl.LogError("files not found")
return &resultToReturn, nil
}
filePaths := make([]string, 0)
......@@ -328,7 +327,6 @@ func ReadDataFromFDB(dbName, indexID string, data *gjson.Result, queries []strin
}
filePaths = append(filePaths, filePath)
}
loggermdl.LogError("filePaths", filePaths)
resultArray, err := bucket.Find(filePaths, infileIndexQueries, data)
if err != nil {
loggermdl.LogError(err)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment